#138 — Pasted content is treated as a single block element
by
Sam Knox
—
last modified
Jul 03, 2010 06:38 PM
| State | Resolved |
|---|---|
| Version: |
—
|
| Area | Functionality |
| Issue type | Feature |
| Severity | Medium |
| Submitted by | Sam Knox |
| Submitted on | Dec 08, 2009 |
| Responsible | Rob Gietema |
| Target release: | 1.1rc13 |
A very common scenario for our users is to transfer page content from a desktop app like Word or Notepad and paste it into the editor in Plone. The problem is that Tiny MCE renders the entire copied text as a single paragraph. It inserts only double line breaks where hard returns had been in the original document. The result is that after content has been pasted into the editor, any application of a style (heading, subheading, etc) affects the entire page instead of just the highlighted section.
Kupu does a better job and will close paragraph tags before each hard return. This results in better HTML. Below is an example of some content pasting into Tiny MCE so you can see what I mean:
<p>Heading Two<br /><br />Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this.<br /><br />HEADING THREE<br /><br />Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this.<br /><br />Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this.</p>
Kupu does a better job and will close paragraph tags before each hard return. This results in better HTML. Below is an example of some content pasting into Tiny MCE so you can see what I mean:
<p>Heading Two<br /><br />Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this.<br /><br />HEADING THREE<br /><br />Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this.<br /><br />Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this. Body text is like this.</p>
- Steps to reproduce:
- Find any content in a Word document
Paste content into Notepad to remove formatting
Paste content from Notepad into Tiny MCE editor
Look at the resulting HTML. You'll see that the entire block even where there are hard returns is rendered as a single paragraph.
Added by
Rene Pijlman
on
Dec 08, 2009 11:07 PM
Did you try to copy and paste directly from Word to Plone, using the special "Paste from Word" button in TinyMCE?We've had great success using that feature. It results in pretty clean HTML code, preserving what needs to be preserved (paragraphs, lists, headings, bold), cleaning up what needs to be cleaned up (Word's junk styles, classes and such).
Added by
Sam Knox
on
Dec 08, 2009 11:10 PM
The issue doesn't have to do with pasting directly from Word. That's a problem no matter what editor you are using. The issue I'm talking about it pasting totally clean, plain text into Tiny MCE and the resultant HTML.
Added by
Veda Williams
on
Jan 21, 2010 11:43 PM
Do we have a sense of when this ticket might be addressed? It's kind of a dealbreaker for us. Thanks!
- Veda
Added by
Rob Gietema
on
Jul 03, 2010 06:37 PM
This issue is not related to the Plone integration of TinyMCE. Please submit your ticket to the TinyMCE tracker at: http://sourceforge.net/projects/tinymce/support
Issue state:
Unconfirmed
→
Resolved
Responsible manager:
(UNASSIGNED)
→
robgietema
Target release:
None
→
1.1rc13
No responses can be added.
If you can, please log in before submitting a reaction.
