Opened 10 months ago
Last modified 10 months ago
#21311 new defect (bug)
The "Paste as plain text" feature in TinyMCE produces double-line breaks between paragraphs.
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Editor | Version: | 3.4.1 |
| Severity: | minor | Keywords: | close |
| Cc: |
Description
Mac OSX Lion, Chrome, WordPress 3.4.1
See attached SWF for a screen-video demonstration.
- In WP-Admin -> Posts -> Add new, with the editor in visual mode, click the "Pase as plain text" icon
- Paste your content into the window that pops up and click "Insert"
- Note that two paragraphs seem to be double-line breaked.
- Switch to HTML mode and note that there are extra " " spaces inserted between paragraphs.
Change History (3)
- Keywords close added
Yes, the "Paste as text" popup converts each line to a paragraph, so if there are more than one line break it would make empty paragraphs. It's been working like that for quite some time.
When pasting plain text, best is to use the "Text" editor tab (formerly HTML). Thinking we could remove the "Paste as text" button as it duplicates the functionality of the Text tab.
Thanks for the response. I can't see the "Text" editor tab at all, even in full-screen mode. Is this in version 3.4.1?
Note: In the TinyMCE demonstration, the paste-as-plain-text plugin doesn't have a pop-up window — but it otherwise behaves as I would expect; that is, it doesn't insert empty lines: http://www.tinymce.com/tryit/full.php
I agree that if the "Paste as text" button is redundant, it should be removed. What happens if I want to paste HTML into the "Text" editor tab? Does it strip out the HTML tags?

The file was too big to attach (2mb) so here's the link:
http://www.uxtremist.com/wp-content/uploads/2010/06/2012-07-19_1124.swf