Content that is added via TinyMCE should be enclosed by <p></p> tags. When you type, this is done, but when you paste text or "Paste from Word" or "Paste as text", it doesn't add those p tags.

After doing some research, I found a solution in the TinyMCE Forum: adding paste_create_paragraphs : "true" to the initialization.

So, I made the following change to tinymce.module:

From ...

  tinyMCE.init({
      $tinymce_settings
  });

... to ...

  tinyMCE.init({
      paste_create_paragraphs : "true",
      $tinymce_settings
  });

In 1.9, it works great!

Could this be added as an option in a future version? It would help enormously.

Comments

mupsi’s picture

Issue summary: View changes
Status: Active » Closed (outdated)