Problem statement: I recently updated from CKEditor 4 to CKEditor 5 and facing an issue with rendering Html page. I found that when I provide HTML content to CKEditor 5, it removes all the styling and render as plain HTML.
I went through some different issue and question, I found that CKEditor 5 implements a custom data model. This means that every piece of content that is loaded into the editor needs to be converted to that model and then rendered back to the view.
*Below are preview links to reproduce the issue in ckeditor5: *
CKEditor 4: https://codepen.io/bhuvavaibhav2rs/pen/rNBxbwG
CKEditor 5: https://codepen.io/bhuvavaibhav2rs/pen/yLBerKb
In CKEditor 4, It's working as expected after giving the configuration below:
CKEDITOR.replace('editor1', {
fullPage: true,
allowedContent: true
});
In CKEditor 5, We are not able to find the same above configuration.