Ticket #131 (closed enhancement: fixed)

Opened 4 years ago

Last modified 2 years ago

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

wymeditor-paste-fix.patch Download (779 bytes) - added by c_t 4 years ago.
Don't leave empty lines when using "Paste from Word"

Change History

Changed 4 years ago by c_t

Don't leave empty lines when using "Paste from Word"

comment:1 Changed 2 years ago by mr_lundis

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in r668.

Note: See TracTickets for help on using tickets.