Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Olaf Lederer

    (@finalwebsites)

    Hi Markus,

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

    Plugin Author MarcusPope

    (@marcuspope)

    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.

    Plugin Author MarcusPope

    (@marcuspope)

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

    Thread Starter Olaf Lederer

    (@finalwebsites)

    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?

    Thread Starter Olaf Lederer

    (@finalwebsites)

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘All white space is stripped from my HTML code’ is closed to new replies.