S
S
Sergey Beloventsev2017-12-23 20:56:34
JavaScript
Sergey Beloventsev, 2017-12-23 20:56:34

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

2 answer(s)
K
Karen Ananiev, 2017-12-23
@Sergalas

Alternatively, you can include config.forcePasteAsPlainText
If that's too drastic, there's also config.pasteFilter . It only works with external data.

O
oh, 2017-12-24
well @AnneSmith

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 question

Ask a Question

731 491 924 answers to any question