Ticket #131 (closed enhancement: fixed)
Paste from Word inserts too many blank lines
Reported by: | c_t | Owned by: | jf.hovinne |
---|---|---|---|
Priority: | major | Milestone: | 0.5 |
Component: | editor | Version: | trunk |
Keywords: | Cc: |
Description
There are two cases to be distinguished (all tested & observed with Firefox):
1) A user clicks into a completely empty WYMEditor-Area (a <br>-Element is appended to the editor's body) and then selects "Paste from word" and pastes text. The <br>-Element will remain as an unwanted Element in front of the inserted Text 1) The cursor is within an empty element and the user selects "Paste from word". Then all text is pasted after the empty element and the empty element remains.
I find both of these behaviours unintuitive as it is not the behavior one is used to from every other application. See the appended Patch for a quick fix. Maybe there is a cleaner and more general way (e.g. allowing Paste from Word into lists with automagically creating list-items)?
Attachments
Change History
Changed 4 years ago by c_t
- attachment wymeditor-paste-fix.patch added
Don't leave empty lines when using "Paste from Word"