We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26931
    • 2,314 Posts
    Hi there,

    I’m using TinyMCE and wonder what would be the best setup - especially concerning entity encoding. My pages are set to UTF-8 and i use a lot of special characters, so either way, entities or special characters will be okay...but one thing i noticed, when setting entity-encoding to raw i can’t insert any non-breaking spaces
     
    , so i got just one whitespace to seperate words, or am i missing something to place non-breaking spaces when entity-encoding is set to raw.

    the other thing i’m thinking about, and probably the much more important one, is concerning the search/ajax-search...what would be better to avoid any problems with search results - special characters encoded or not?

    How do you set up your editor?

    thank you, cheers, j
      • 7231
      • 4,205 Posts
      In general I just leave the defaults since I don’t use the RTE myself, but I should pay more attention to the setup since the clients use it.

      Good post, I am interested in the best practice as well. grin
        [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

        Something is happening here, but you don't know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 3072
        • 20 Posts
        remove_trailing_nbsp : true,

        works fine
          • 26931
          • 2,314 Posts
          Hi benchfrooser,

          ...thanks, i’ll try that!

          cheers, j
            • 26931
            • 2,314 Posts
            Hi benchfrooser,

            in which file do i have to set
            remove_trailing_nbsp : true,
            ?

            cheers, j
              • 3072
              • 20 Posts
              Put it in the configuration of the plugin, in the field "Custom Parameters"
              The configuration of TinyMCE is here unnecessary bloated.
              Normally all preferences for the TinyMCE are stored between these tags:
              tinyMCE.init({
              	
              });

              To bring it there you can do it on the way you prefer.