WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When creating a new post, by entering either manually or pasting from another document, TinyMCE (the default WordPress editor) does not seem to hold any type of formatting. For instance I create a two paragraph entry. When viewing it on the page it will come through as a single chunk of text within <div class="entry-content">. It's forcing me to have to revisit posts quite a bit and manually entering paragraph tags <p>.

I'm unsure what's causing this issue. Any help would be appreciated.

share|improve this question
up vote 1 down vote accepted

TinyMCE - at least, as-configured for WordPress - isn't explicitly designed for copying/pasting of text richly formatted in other word processors.

That said: how are you pasting? Are you simply copy/pasting (i.e. via CTRL-C, CTRL-V; or else via right-clicking and using contextual menu commands), or are you using the "Paste From Word" button on the TinyMCE toolbar?

If you're not using the "Paste From Word" button, please give it a try:

1) On the TinyMCE toolbar, click the "Kitchen Sink" button (last button on the right, on the top row of buttons) 2) Additional rows of buttons will appear 3) On the second row of buttons, click the "Paste From Word" button (the icon is a clipboard with a "Word" icon, "W")


Are you removing the wpautop() filter? Look for something like this in functions.php:

remove_filter( 'the_content', 'wpautop' );

That would definitely cause the line-break issue you're seeing.

share|improve this answer
Seems as though it occurs no matter how I insert it. Even when starting a fresh post and pressing enter to create the paragraphs. – Zach Shallbetter Mar 28 '11 at 17:23
Where are you originally creating/formatting your content? Are you using a word processor (such as MS Word, etc.)? That creates its own potential issues, but is, I think, a separate issue entirely. Are you saying also that when you create original text in the Visual Editor, and then apply formatting to that text, using the TinyMCE formatting toolbar, that formatting isn't retained? – Chip Bennett Mar 28 '11 at 17:35
What I'm saying is that no matter how I input data into the editor it does not retain line breaks. It occurs when I paste from any document type or when I physically create original text in the visual editor. In order to create line breaks I must do it by hand in the html editor. – Zach Shallbetter Mar 28 '11 at 17:53
What Theme are you using? Are you performing any custom filtering of the $init array passed to TinyMCE, e.g. in your functions.php file? – Chip Bennett Mar 28 '11 at 18:10
It's a custom theme. I only have a few references to init in functions.php I went ahead and removed them all and individually with no results. – Zach Shallbetter Mar 28 '11 at 18:18

I also encounter the same issue and i followed the following post.


The problem is TinyMCE is formating our html. When it formating our HTML it removes br tags and empty paragraph tags

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.