PasteCleanup
configurationOptions for controlling how the pasting content is modified before it is added in the editor.
pasteCleanup
ObjectpasteCleanup.all
BooleanAll HTML tags are stripped leaving only the text in the content.
Default: false
pasteCleanup.css
BooleanRemove style and class attributes from the pasting content.
Default: false
pasteCleanup.custom
FunctionUse a callback function to integrate a custom implementation for cleaning up the paste content. Make sure the callback function always returns the result.
pasteCleanup.keepNewLines
BooleanStrip all HTML tags but keep new lines in the pasted content.
Default: false
pasteCleanup.msAllFormatting
BooleanRemove all special formatting from MS Word content like font-name, font-size and MS Word specific tags.
Default: false
pasteCleanup.msConvertLists
BooleanConverts MS Word pasted content into HTML lists.
Default: true
pasteCleanup.msTags
BooleanRemoves all MS Word specific tags and cleans up the extra metadata.
Default: true
pasteCleanup.none
BooleanPrevent any cleaning up of the content.
Default: false
pasteCleanup.span
BooleanRemove all span elements from the content, ensuring much of the inline formatting is removed.
Default: false