We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17422
    • 225 Posts
    I need use TinyMCE, ( i’d don’like this :-( but my client want use this.

    In manager when the resource load, tinyMCE create a tag br between tag p

    Why huh?


    thanks for your help.

    Laurent
      • 18373 ☆ A M B ☆
      • 3,141 Posts
      I don’t understand what’s going on.

      If English isn’t your native language, that’s fine. It aint mine either. But please, do try to put some more effort in getting the point across... There’s also localized forums where you can ask questions in your own language, if that’s easier? Some of them are pretty big, too.
        Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

        Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
        • 19597
        • 44 Posts
        Quote from: lolotlm at Feb 24, 2011, 10:54 AM

        I need use TinyMCE, ( i’d don’like this :-( but my client want use this.

        In manager when the resource load, tinyMCE create a tag br between tag p

        Why huh?


        thanks for your help.

        Laurent


        Mark, here is what he said (I think):

        I need to use TinyMCE. I don’t like TinyMCE, but my client wants to use it.

        In the manager, when the resource loads, TinyMCE creates a
        tag in-between the <p> </p> tags.

        Why ?


        thanks for your help.

        Laurent
          • 3749
          • 24,544 Posts
          Are the character sets specified in your config.inc.php file, the DB, and the template header all the same?

          A mismatch can cause your problem.

          As a last resort, I think you could remove them using a plugin connected to OnDocFormSave and/or OnDocFormPrerender, though this would remove *all*
          tags.

          $output =& $modx﷓>resource﷓>_output;
          
          $output = str_replace("<br />", "", $output);
          


          You could use preg_replace() to be more selective.
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 17422
            • 225 Posts
            @Minaris, thanks

            @BobRay, i’m not english, I will make an effort next time. smiley
            i’ll try this.

            thanks for your help.
            thank you for taking the time to answer me

            Laurent

            PS : i use google translate smiley