Hi everybody !
I insert "on fly" with Ajax some datas in a ckeditor, containing some divs. I need to keep those divs.
My problem is :
- when the "source" button is selected, divs are kept
- when the "source" button isn't selected or unselected, divs are replaced by "p" blocks.
I've tried differents configurations with enterMode and autoParagraph to false, but it's no use !
Thanks by advance,
Aurel
Resolved
FYI, solved by allowedContent configuration
Glad to see you managed to
Glad to see you managed to solve it -- perhaps you could post the solution as well, for other users to benefit from?
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!
Solution
For sure !
I configured CKEditor with :
In this case, div blocks with id attribute are allowed in the editor content !
The documentation is here