How is your experience with the OutSystems Community?
21
Views
3
Comments
I am facing an issue with CKEditor while loading dynamic HTML and CSS content.
Application Type
Reactive

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:

  • HTML content loads correctly
  • CSS styles are not applied initially in CKEditor
  • After editing/saving,  styles are removed completely
  • Email template formatting breaks

Thanks


2025-08-07 06-30-56
Amit J
Champion

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?

UserImage.jpg
Mann Khan

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: '();{}'});

2026-01-28 16-57-48
Mihai Melencu
Champion

Hi @Mann Khan ,

Can you please share your OML or create a sample OML with your exact use-case and settings, thank you.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.