• I got somthing weird going on… I enter the post, check the HTML source – i see paragraphs and line breaks in the code… i publish the post, view source and the line-breaks are gone?

    Have I done something silly?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter norbit

    (@norbit)

    For example in my posts end up like –

    <strong>Flash develop</strong>
    IDE for AS
    </a>

    When opened in the TinyMCE editor i get –

    <strong>Flash develop</strong><br />
    IDE for AS<br />
    </a><br />

    When published they disappear, i have had to put them in manually from the database for now using myadmin…

    What could be causing this?

    What could be causing this?

    If you want to change the formatting of posts, you should do it in your css. Or follow the directions given liberally around here to turn off as much tag filtering as possible.

    Just don’t use the WYSIWYG editor. Then you can do as you please, for better or worse.

    Thread Starter norbit

    (@norbit)

    This is a tag issue not formatting since linebreaks need to be described in HTML not just chr(10), tag filtering – sounds promicing – will have a search about…

    Re – dont use the WYSIWYG – thats all very well for me, however if we want to use a wordpress based solution for someone less fluent in HTML to use then it will at least need to work properly with the basics…

    I have to disagree with you there. I think the standard quicktag buttons are more than sufficient for most people. Just because the WYSIWYG editor is off doesn’t mean you gotta type out the HTML manually. ??

    But perhaps I give people too much credit.

    I am having the same problem with a site I have developed for a client. In trying to be accessible to experienced developers and novice bloggers, WordPress has failed to address the needs of either group. What I don’t understand is the apparent behavoir of the TinyMCE (even in “html” mode) and the standard editor handling input in different ways. TinyMCE seems to strip tags when you save but in Rube Goldberg fashion they are added back when you edit the post and for display only when the post is viewed on your site if you are using the_content but not if you are using the_excerpt. The standard editor saves the tags and works generally as one would expect it to. I have run into several problems where I created content in the standard editor and then my client edited it in TinyMCE, stripping all paragraph tags as well as other code changes that had serious effects. IMHO, the interactions between the two editors and wordpress output (wp_autop, etc.) is one of the major weaknesses of the system.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Line breaks dissapearing in TinyMCE’ is closed to new replies.