Additionally, the msAllFormatting option removes the font-name and font-size stylization. Some browsers do not translate these tags and they are just inserted into the content area on pasting. MS Word specific tags are some valid XML nodes that MS Word uses to render text formatting and decoration. The msTags and the msAllFormatting options strip MS Word specific tags. That is why, in such cases, these options deliver a better cross-browser outcome. Most browsers translate MS Word content to HTML, but strict rules or specification leading to proper results do not exist. They offer more control over the pasting of content from MS Word. The pasteCleanup options starting with an ms prefix target MS Word. Copy this is a paragraph that has some inline styles and paste it in the Editor. Because of the enabled span option, the span tags are removed. The following example demonstrates how to copy the HTML content above the Editor and paste it in the content area. custom-Uses a callback function to create s custom pasteCleanup option.msConvertLists-Converts MS Word lists to HTML lists.msAllFormatting-Strips the MS Word specific tags and removes the font-name and font-size decoration derived from MS Word.msTags-Strips the MS Word specific tags when pasting content and cleans up extra metadata.css-Removes the style and class attributes out of all HTML elements from the copied content.span-Removes the span elements from the copied content.keepNewLines-Removes all HTML elements, such as the all option, but preserves new lines.all-Strips all HTML tags and leaves only plain text.none-Disables all options which means that none of the pasteCleanup options will be executed.The following list represents the built-in pasteCleanup options: After the browser processes the content, the Editor applies the pasteCleanup options which help control the content that will be pasted. Any content that is pasted is first processed by the browser. The Editor facilitates the DOM clipboard events. Pasting content from HTML and Microsoft (MS) Word documents to the Editor is essential for the end-user experience. Download free 30-day trial Pasting Content
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |