Pasted MS Word Styles in the Editor Are Not Retained
Environment
Product | Progress® Kendo UI® Editor for jQuery |
Operating System | Windows 10 64bit |
Description
The pasted MS Word styles in the jQuery Editor are not retained.
Cause
By design, the Editor strives to output a clean and XHTML-compatible markup. That is why, the widget cleans up invalid styles set by Microsoft Word and removes the most presentational styles. Such styles include the colors applied by the current theme and the default MS Word font and size.
Solution
Ideally, the output of the Editor has to be styled via a stylesheet provided through the stylesheets configuration option. It allows for the whole pasted content to be consistently styled across your site.
If wrong pasting removes semantics or actual content along with the styles:
- Submit a bug report.
- Attach an MS Word document that reproduces the issue.