WordPress.org

Ready to get started?Download WordPress

Forums

Preserved HTML Editor Markup
[resolved] All white space is stripped from my HTML code (6 posts)

  1. Olaf Lederer
    Member
    Posted 1 year ago #

    Hi Markus,

    here is my new ticket about this issue.
    On my site I use the P-tag as the new line behavior.
    For the following test I entered content/html in different ways:
    http://imm.io/S6PR

    Like I said before all white space is stripped at the moment I switch from WYSIWYG editor to the code editor:
    http://imm.io/S6QM

    Seems like that all whitespace and new lines are stripped from the content at the moment I enter content using the WYSIWYG interface.

    http://wordpress.org/extend/plugins/preserved-html-editor-markup/

  2. Olaf Lederer
    Member
    Posted 1 year ago #

    Hi Markus,

    I noticed today on some other site that if you disable "wpautop" all surrounding white is stripped.

  3. MarcusPope
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Olaf, this is actually not a bug with my plugin. Entering content on the WYSIWYG editor won't format your HTML with pretty whitespace indents. My plugin only solves the problem of when you create content in the Code Editor with formatted whitespace and then switch over to the WYSIWYG editor. When you switch back you'll still have the formatting you expected. If you add more content to it, whitespace you have previously set will remain, but the new content will need to be formatted to look good in the code editor.

    My plugin was designed for people who write code in the editor, and allow other users to edit that result in the WYSIWYG editor without ruining everything in the code editor.

    Let me know if I misunderstood your problem.

  4. MarcusPope
    Member
    Plugin Author

    Posted 1 year ago #

    Marking as resolved, but I'll work with you if you are still having issues with keeping whitespace preserved in the editor window.

  5. Olaf Lederer
    Member
    Posted 1 year ago #

    Hi Marcus,
    I don't say that your plugin removes the whitespace :)
    It's just a nasty behavior that if you use the wpautop function the whitespace is gone.
    If you use the WP without any modification the html code produced in the WYSIWYG editor is nicely formatted in the code view.

    What is your suggestion? I need to keep several html tags and attributes in my code, and I like to use wysiwyg interface. Maybe I need to use something else?

  6. Olaf Lederer
    Member
    Posted 1 year ago #

    I gonna try the "TinyMCE Advanced" plugin for a while. It seems that this plugin act like I need, thanks so far.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic