WordPress.org

Ready to get started?Download WordPress

Forums

Post Editor Buttons Fork
[resolved] Line break (6 posts)

  1. ronbme
    Member
    Posted 2 years ago #

    I get a line break before and after inserting an H1, H2, etc. element.
    So far, all the Span elements work as expected.

    I've tried the plugin in several different themes with the same result.

    This was on WP 3.1.4 MultiSite.

  2. ronbme
    Member
    Posted 2 years ago #

    I don't think this is about your plugin. It looks more like a WordPress problem.

  3. Kailey (trepmal)
    Volunteer Mod & Reviewer
    Plugin Author

    Posted 2 years ago #

    Sorry for the late response - I've been a bit under the weather.

    I was unable to replicate the issue on any of my WordPress test installs. There could be interference from another plugin, or maybe some browser settings.

    If you figure out or learn more about the issue, feel free to post it here in case other users are experiencing the same problem.

  4. ronbme
    Member
    Posted 2 years ago #

    Thanks. I'm still looking into it. I can see from other comments in the forum that this isn't a new problem.

    There is a line break before and after every < div > < p > and any h1, h2, h3, etc. elements.

    I'll post back when I find a solution.

  5. Kailey (trepmal)
    Volunteer Mod & Reviewer
    Plugin Author

    Posted 2 years ago #

    Some of the default buttons for block level tags (<blockquote>, <ul>) come with line breaks, but I'm not sure how these would get added to any of the custom buttons.

    http://core.trac.wordpress.org/browser/trunk/wp-includes/js/quicktags.dev.js

    If toggling between HTML and Visual mode, the line breaks are probably due to TinyMCE/WordPress code formatting.

  6. ronbme
    Member
    Posted 2 years ago #

    Actually, by using "span" and "style" I can create my own versions of block elements like < h1 > and decide whether I want line breaks or not. So that is what I did with your plugin. And I can use "H1", "H2", etc. for their titles.

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic