getkirby / editor

A new type of WYSIWYG editor for Kirby
https://getkirby.com
205 stars 28 forks source link

Pasting text from Word inserts some kind of markup #227

Closed moritzebeling closed 4 years ago

moritzebeling commented 4 years ago

Describe the bug When pasting text from Word, a strange line gets inserted as well:

schemas.microsoft.com/office/2004/12/omml”xmlns=”http://www.w3.org/TR/REC-html40“>

To Reproduce

  1. Have some text in Microsoft Word and copy it to clipboard
  2. Go to the Panel and paste the clipboard inside a text block of the Editor

Expected behavior Well, it would be best, if this line wouldn’t appear ;)

Screenshots Random Word document with various example formatting. But the problem occurs also without any formatting:

Bildschirmfoto 2020-04-27 um 10 46 11

When pasting the text in the Editor. Exact same result in Chrome and Safari:

Bildschirmfoto 2020-04-27 um 10 38 40

Version Kirby 3.3.5 Editor 1.0.2

Desktop (please complete the following information):

bastianallgeier commented 4 years ago