Answer the question
In order to leave comments, you need to log in
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
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;
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 questionAsk a Question
731 491 924 answers to any question