V
V
Vasily Vyaznikov2017-09-03 20:21:48
css
Vasily Vyaznikov, 2017-09-03 20:21:48

How to disable HTML formatting in CKEditor?

What is the problem.
There is a simple HTML file. The content is laid out in the form of a table (HTML letter)
, this is how it looks: https://prnt.sc/gglcz4 When the code is inserted into CKEditor
via the source button, it looks like this:
the original formatting of the document disappears and it crumbles.
CKEditor latest version https://ckeditor.com/builder
How can I fix this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vasily Vyaznikov, 2017-09-03
@vyaznikov1991

Understood.
The thing is that CKEditor does not add but cuts out styles and id
To prevent this from happening in the config, you need to register:
config.allowedContent = true;

O
oh, 2017-09-03
well @AnneSmith

what browser are you using? Firefox for some reason does not always work with this plugin
in CKEditor there are different types of paste and different buttons for them, in the configuration you need to select the one that pastes without formatting
if you need it to be displayed correctly in the CKEditor window itself, then for it you need to register also CSS styles

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question