Answer the question
In order to leave comments, you need to log in
How to set pasted text formatting reset to default in Ckeditor?
Actually it is necessary that, by default, when you insert text, the formatting is gone. Those. background and other goodies that are obtained by inserting text from another source.
Answer the question
In order to leave comments, you need to log in
Alternatively, you can include config.forcePasteAsPlainText
If that's too drastic, there's also config.pasteFilter . It only works with external data.
in addition to the first answer: CKeditor has several options for cleaning the markup, it is best to read the docs and choose the appropriate
one, you can also set the default tag that is inserted with each new line, for example or , it can also affect the result of the inserted text
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question