Support » Plugin: TinyMCE Advanced » shortcodes wrapped by

  • shortcodes wrapped by <p> automatically.
    It breaks some shortcode output like columns.
    Would you change behavior not to add <p>.

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

    (@azaozz)

    WordPress Dev

    This is the behavior in WordPress, and is the expected one. In the editor shortcodes are “just text” that acts as a placeholder.

    If you want to add a single shortcode on its own line, you will have to take care of the paragraph that is added with it. Generally you may want to add a shortcode as part of the element(s) you need, not separately. I.e. if you are adding [shcode]<div>...</div>, you are better off with <div>[shcode]...</div>.

    I often use something like this

    [columns]
    aaa
    bbb
    ccc
    [/columns][columns]
    111
    222
    333
    [/columns]

    Is there best way to handle this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.