I am passing HTML content with inline CSS and style tags into CKEditor from the database. However, even during the initial load, the CSS is not reflected properly inside the editor.
Issue Details:
Thanks
By default CKEditor removes many styles, classes, style tags, and attributes.
Add this configuration in your CKEditor initialization:
CKEDITOR.replace('EditorId', {
allowedContent: true,
extraAllowedContent: '*(*);*{*}'
});Could you share a dummy module here, along with your example, for further investigation?
Can you please send me a small OML file where we can pass small HTML and CSS-based content in the CKEditor, such as Name and Age, and also edit the old HTML/CSS content that we already have?
Because CKEditor 5 does not support the following configuration:
CKEDITOR.replace('EditorId', {allowedContent: true,extraAllowedContent: '();{}'});
Hi @Mann Khan ,
Can you please share your OML or create a sample OML with your exact use-case and settings, thank you.