ckeditor / ckeditor5

Powerful rich text editor framework with a modular architecture, modern integrations, and features like collaborative editing.
https://ckeditor.com/ckeditor-5
Other
9.45k stars 3.7k forks source link

Import from Markdown / Export as Markdown / Paste Markdown #14003

Open wwalc opened 1 year ago

wwalc commented 1 year ago

Creating this ticket to measure demand for extending the Markdown capabilities of CKEditor 5.

CKEditor 5 currently allows for switching the default output from HTML to Markdown https://ckeditor.com/docs/ckeditor5/latest/features/markdown.html This results in CKEditor 5 being basically a full Markdown editor, which may not always be a desired behavior.

This ticket instead is about keeping the ability to use CKEditor 5 as an HTML editor (so it loads HTML and outputs HTML), but also being able to Import/Export as Markdown using e.g. a dedicated button, just like we deliver Import from Word and Export to PDF/Word.

Additionally, with this theoretical feature, CKEditor 5 could also support Pasting Markdown directly in the editor, where the editor would try to autodetect that Markdown has been pasted so that it automatically converted it to HTML.

Example use case 1: an application where HTML is used to store data (e.g. a typical CMS). End users (content creators) with a need to port their notes/content from other applications, where Markdown was used to create the content. They would be allowed to Import/Paste existing Markdown content easily.

Example use case 2: an application where HTML is used to store data (e.g. a typical CMS). End users with a need to download the content as markdown to enter it into a different system that accepts only Markdown. Thye would have e.g. "Download as Markdown" toolbar button.


If you'd like to see this feature implemented, add a 👍 reaction to this post.

Witoso commented 1 year ago

Rel: https://github.com/ckeditor/ckeditor5/issues/2321 +50 👍

Witoso commented 10 months ago

We released an experimental version of Paste Markdown, test it and let us know your thoughts :blush: