• new installation of 2.7.1, and it keeps stripping paragraph tags, I know some people don’t like this, I guess they don’t write with paragraphs, but I thought this was the default behavior, I need valid html formatted with paragraph tags

    is this new in 2.7.1, or is there some problem with my installation?

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

    (@ekitel)

    The TinyMCE Advanced plugin has an option to fix this. I don’t understand why this is like this now. Maybe there’s a “what’s new in version whatever” doc somewhere that explains it?

    same problem. can add them in html editor and as soon as you go to visual it removes them.

    I have the same problem with it mucking fonts. Strange part is it looks much closer to as intended if you view it using Google reader.

    I also have encountered an occasional error where the editor and the function the_content() will strip paragraph tags. Sometimes they’re stripped, sometimes not.

    I checked and re-checked my code. No errors.

    I finally settled on a hack of adding a class attribute to my paragraph elements. WordPress sees these and preserves the paragraph. It doesn’t matter what class name you use.

    My guess is that this is likely a problem with the the_content() function, not the visual editor. That’s based on my guess that the visual editor is saving changes using AJAX and that function is doing the stripping. I’m at a loss to know why it sometimes strips paragraphs and preserves others.

    Same issue here, strips p tags from the HTML when you click over to Visual and back to HTML (unless the p tags have attributes like class). Very annoying…

    Found a solution – please use with caution!

    In the folder wp-admin edit the file editor.js and remove the following:

    b=b.replace(/\s*<p>/gi,"");b=b.replace(/\s*<\/p>\s*/gi,"\n\n");

    That’s the code which is stripping any P tags (which haven’t got attributes and been marked by the preceding code).

    I’ve not got a clue where else this may affect so as said, use with caution.

    Bluetera

    (@afemaleprodigy)

    Been using WordPress many years, but something is different. I’m having a similar issue. When I hit RETURN (ENTER), it inserts a single break instead of a paragraph, but visual editor shows a blank line as if it wrote a new paragraph. If I hit it several times, it shows multiple new lines in the editor, but still only one single break on the live published post. So basicly, no matter what I do, the visual editor will NOT insert new paragraphs. It shouldn’t be an issue with the css because when I view the source, it shows breaks instead of paragraph tags. I do have the formatting set to “paragraph” in the visual editor too.

    Any suggestions?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘tiny mce strips paragraph tags’ is closed to new replies.