Opened 10 years ago
Closed 10 years ago
#13093 closed Bug (fixed)
[Webkit/Blink] Paste From Word's conflict with the paste filter
Reported by: | Piotrek Koszuliński | Owned by: | Piotrek Koszuliński |
---|---|---|---|
Priority: | Must have (possibly next milestone) | Milestone: | CKEditor 4.5.0 Beta |
Component: | General | Version: | 4.5.0 Beta |
Keywords: | Cc: |
Description
On Webkit and Blink paste filter is set to semantic-content by default.
It means that every external paste will be stripped from classes and styles. And this means that PFW's options like PFWKeepStyles stop working.
We could require adjusting paste filter's options with code like:
editor.on( 'instanceReady', function( evt ) { if ( editor.pasteFilter ) editor.pasteFilter.allow( '*(*)[*]' ); } );
But this basically disables the paste filter which we need on Webkit and Blink for external pasting due to the awful mess that these browsers do in HTML.
So the only solution I can think of now is to disable the paste filter if PFW was executed for that paste.
Change History (7)
comment:1 Changed 10 years ago by
comment:2 Changed 10 years ago by
It makes some sense. For pasting content from Word, pasteFromWord
plugin is the filter and the second filtering is no needed.
comment:3 Changed 10 years ago by
Status: | new → confirmed |
---|
comment:4 Changed 10 years ago by
Priority: | Normal → High |
---|
comment:5 Changed 10 years ago by
Owner: | set to Piotrek Koszuliński |
---|---|
Status: | confirmed → assigned |
comment:7 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | review → closed |
Closed with git:0c92f25.
We initially had this problem in #12256.