WordPress.org

Support

Support » Plugins and Hacks » [Plugin: TinyMCE Advanced] Plugin is adding p tags to shortcodes

[Plugin: TinyMCE Advanced] Plugin is adding p tags to shortcodes

  • danbodenstein
    Member

    @danbodenstein

    I am using shortcodes and nested shortcodes and with the plugin active, it is adding p tags and br tags to the code
    [bucket-group]
    [bucket]mycontent goes here[/bucket]
    [bucket]mycontent goes here[/bucket]
    [bucket]mycontent goes here[/bucket]
    [/bucketgroup]

    Is this a bug? If not, how do I get rid of it.
    Please note, this is happening after I save the post, not while viewing the page. wpautop is not involved.

    Thanks

    http://wordpress.org/extend/plugins/tinymce-advanced/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Andrew Ozz
    WordPress Dev

    @azaozz

    Wpautop replaces line breaks with P or BR tags. Similarly inside the visual editor text strings (the shortcodes are normal text strings in there) are wrapped in paragraphs. There is a function that runs after wpautop and removes the wrapper Ps.

    If you want to avoid any extra P or BR, just put all shortcodes on one line.

    It is not a TinyMCE or other editor’s (like CKE) related bug, since all of them work perfectly in CMS like Modx or Joomla. It is just the WP internal editor that is a real disaster (problems existed way before the TinyMCE inclusion into WP). Get yourself “RAW HTML” plugin and get rid of all the unwanted mistakes like images inserted between <p></p> which, to name one of the many, is definetely a nonsense.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: TinyMCE Advanced] Plugin is adding p tags to shortcodes’ is closed to new replies.