Opened 8 years ago
Last modified 8 years ago
#16847 closed New Feature
Pick styles from clipboard data transfer when pasting from Word — at Initial Version
Reported by: | Marek Lewandowski | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 4.7.0 |
Component: | Plugin : Paste from Word | Version: | 4.7.0 |
Keywords: | Cc: |
Description
While serializing to HTML Word inlines styles to some elements, while leaving classes in others.
A style
element that contains all the styles for given selector is put in html > head
element of text/html
clipboard which is currently not pasted into CKEditor.
What we need to do here is to make sure that we check text/html
dataTransfer for these style
elements, and inline them into matched elements.
One thing to keep in mind that we don't want to inline mso-
specific styles. At the end it's fine for us to inline even unknown css, as those will be stripped by ACF.