ckeditor / strapi-plugin-ckeditor

CKEditor 5 - Official Integration for Strapi
https://market.strapi.io/plugins/@ckeditor-strapi-plugin-ckeditor
Other
72 stars 79 forks source link

Strapi CKEditor output in HTML/Markdown does not correspond with the official Content styles from CKEditor5 #45

Closed jungs1 closed 1 year ago

jungs1 commented 1 year ago

I am writing to inquire about the display of CKEditor's rich text output in HTML/Markdown into Frontend(React) using React-Markdown. As an initial step, I have imported the official content styles into React from the CKEditor team. However, I have encountered an issue where the CSS class names are missing, and the HTML/Markdown output appears different from the actual CKEditor HTML output when viewed using Strapi REST API.

Specifically, when a table is rendered using CKEditor5 Custom field from Strapi REST API, the resulting HTML output is simply <table>...</table>. However, when inspecting the table generated from the CKEditor5 examples on the official site, the HTML output looks like this:

<figure class="table ck-widget ck-widget_with-selection-handle" contenteditable="false">
   <table></table>
</figure>

To ensure consistency in rendering the HTML/Markdown output in React with the CKEditor5 content style format, I would like to inquire whether there is a way to receive the HTML/Markdown output in this format, or if there is an alternative solution to achieve this.