0.1.0 • Published 9 months ago
@wdmv/ckeditor-auto-remove-inline-styles v0.1.0
Introduction
This is a plugin to automatically remove all the inline styles when pasting content into CKEditor 5.
For instance, when copying and pasting from MS Word, and the use case of the editor is that elements entered into the editor have a normalized common look throughout the application, it can cause weird issues since word will insert its own inline styling.
Installation
Using npm:
npm i @wdmv/ckeditor-auto-remove-inline-styles
Using yarn:
yarn add @wdmv/ckeditor-auto-remove-inline-styles
Using the plugin
import AutoRemoveInlineStyles from '@wdmv/ckeditor-auto-remove-inline-styles';
ClassicEditor.create(document.querySelector('#editor'), {
plugins: [AutoRemoveInlineStyles /* ... */],
})
.then(/_ ... _/)
.catch(/_ ... _/);
0.1.0
9 months ago