• Hello;

    First sorry for my english ??

    I have installed tiny mce advanced in my wordpress installation. All works fine.

    I usually works in the html view, and add blank lines between the paragraphs, lists… to get the code more clear and clean.

    The problem is that when I save the page, these blank lines disappear.

    For example, if i have:
    —————
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec congue sapien sit amet ante ornare laoreet.</p>

    <p>Etiam tristique accumsan erat in blandit. Cras at urna in sem gravida sodales. Maecenas commodo, orci et viverra vulputate, quam massa fermentum massa, at tincidunt nibh ipsum eu enim.</p>
    ———————-
    When I save the page, I get the code that is:
    ———————–
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec congue sapien sit amet ante ornare laoreet.</p>
    <p>Etiam tristique accumsan erat in blandit. Cras at urna in sem gravida sodales. Maecenas commodo, orci et viverra vulputate, quam massa fermentum massa, at tincidunt nibh ipsum eu enim.</p>
    ————————
    Without the blank line.

    Anyone know how I can do to keep me blank lines in HTML editor?

    Thanks and best regards!

Viewing 1 replies (of 1 total)
  • Easy answer: You can’t.

    The WYSIWYG editors like this try to keep the amount of characters down to what it needs, so when you have extra carraige returns that aren’t needed because they are between tags like your example, they will be stripped out before the HTML is saved. I also know that the WordPress parser will see a blank line in that sort of scenario, and replace it with a
    tag, so it’s really in your best interest to remove those extra line breaks.

    Can I ask why you want to keep blank lines ike this? Is it just for your own back-end HTML formatting or is there something else?

Viewing 1 replies (of 1 total)
  • The topic ‘Tiny MCE Advanced problem with blank lines in HTML view’ is closed to new replies.