Moon soon
Moon soon

Reputation: 2856

Why CKEditor change original element and class

for example, I have following content will be used:

<div class="h21copy">
    <p>123</p>
</div>

When I initialize with CKEditor, it will become to:

<p>123</p>

screenshots blow:

enter image description here

Upvotes: 1

Views: 112

Answers (1)

Arthur Ersosi
Arthur Ersosi

Reputation: 11

paste in your config.js

config.allowedContent = true;

Further reading: https://ckeditor.com/docs/ckeditor4/latest/guide/dev_allowed_content_rules.html

Upvotes: 1

Related Questions