Answer the question
In order to leave comments, you need to log in
How to wrap all text in Ckeditor in div with class?
Greetings!
There is an editor CKEditor 4 and layout, where nesting is provided .
For body, adding a class does not constitute a turd, there is a bodyClass parameter for this. But I don't understand how to add a second nesting. The parameters are simply ignored.
I found two possible solutions, but both are not working:
1. when starting ckeditor:.article > .content > сам контент
.article
bodyPrepend/bodyAppend
CKEDITOR.plugins.add( 'quote', {
init: function( editor ) {
editor.setData( '<div class="content">' + editor.getData() + '</div>' );
}})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question