Forums

Empty Paragraph for TinyMCE Editor
plugin just adds a div tag around my content (3 posts)

  1. fattymattybrewing
    Member
    Posted 1 year ago #

    When I use the hard return button, the plugin just adds a` <div style="margin-top: 20px;">

    ?` tag wrapped around my page content, when the page is saved it does not work.

  2. kb_unhammer
    Member
    Posted 1 year ago #

    Huh, I wonder where that would come from, the code adds no divs at all. Do you have any other plugins installed which might interfere?

    If you'd like to help debug this, go into your Plugins list, and click the "Edit" link under this plugin, then select the file "empty-paragraph-for-tinymce-editor/editor_plugin.js" from the right-hand list.

    The second line of that file should say
    return "<p>&nbsp;</p>";

    Try changing that to e.g. a one-pixel dot:

    return "<p style="font-size:1px;">.</p>";

    and see if that works. If the one-pixel dot works for more people than the empty unicode character, then we'll just have to change the plugin to do that :)

  3. kb_unhammer
    Member
    Posted 1 year ago #

    Just uploaded 0.9.2, let me know if that works :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic