Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contributors MIT License Issues Current Version

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(/_ ... _/);

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages