Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

2 Answers

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")

EDIT:

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
1  
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
show 5 more comments

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

http://forums.innovsystems.com/forum/topic/24

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
add comment

Your Answer

 
discard

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.