We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4749
    • 623 Posts
    I have several documents that have only chunks in the Editor - {{chunk}} The problem is that TinyMCE surrounds everything in <p> tags. I don’t want that. I’ve tried changing the styles with no luck. It seems to be a fairly simple issue, but if anyone has dealt with this before that’d be great to know your solution! wink
      The MODx has you...
      Utah Web Design
      • 4041
      • 788 Posts
      There are alot of formatting options and alot are turned on by default so you will have to go in and fix the plugin code with the appropriate fix.

      http://wiki.moxiecode.com/index.php/TinyMCE:Configuration

      and more to the one I think is affecting you:

      http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/force_p_newlines
        xforum
        http://frsbuilders.net (under construction) forum for evolution
        • 5340
        • 1,624 Posts
        Quote from: cbaone at Jun 05, 2008, 05:42 PM

        I have several documents that have only chunks in the Editor - {{chunk}} The problem is that TinyMCE surrounds everything in <p> tags. I don’t want that. I’ve tried changing the styles with no luck. It seems to be a fairly simple issue, but if anyone has dealt with this before that’d be great to know your solution! wink


        I will suggest creating a new template instead of adding chunks inside the content: [*content*] {{chunk}}
        Or maybe a TV where you select the chunk

        Edit: ...or create a snippet that detects if the content has a only a chunk call and remove the <p></p>. Eg: If the string has <p>{{ remove p tags.
          • 4749
          • 623 Posts
          xpix thanks that’s exactly what I ended up doing.
            The MODx has you...
            Utah Web Design