-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support converting pasted markdown content / Paste Markdown feedback. #2321
Comments
Hey, do you have any idea when this feature may be released? |
This feature is actually really essential for enabling bloggers to migrate their content to platforms using ckeditor. Any way we can escalate? |
according to documentations, |
It would be great for have support for pasted markdown, this is planned? |
Since this was opened, CKEditor 5 gained a "Source" plugin. Why not just enable that, expect the user to switch to the I think this arguably can be closed, or at best is a very low priority. |
Thanks, @wimleers, I think we will keep it open to gather interest. I can imagine someone wants to paste the markdown and see the HTML source 😅. |
I'd be happy to use the source button to see the HTML. But the main issue is being able to paste Markdown and have it rendered as Markdown. |
This assumes all formats have the Source button enabled, but isn't good UX for the user even if present, I think. One area I was hoping to leverage this was with API integrations, specifically AI in this case. It will return items formatted as Markdown to me, but since pasted text is not supported, this is the result: |
@kevinquillen interesting use case! @scofalik do we have some way to stream the response through the markdown data pipeline so that it will be rendered properly? |
Yes, see the example here: https://jetpack.com/blog/introducing-jetpack-ai-assistant/ I assume this is the approach they had. Markdown is an order of magnitude smaller than HTML in a payload (where length costs money) and easier for CKEditor to work with in this context. Stitching together HTML from a chunked response doesn't work too well. Anyway, I think that if it could apply itself on write, it would work. When the response is streamed in, it updates CKEditor like so:
|
internal notes I've prepared a PoC for this feature on a branch: 4dce8d9 It probably does not meet all of the corner cases yet, but it seems to be working for simple markdown copy and paste cases that I tested. |
internal notes The first version handled markdown code copied from any text editor, but did not transform any markdown copied from a website, e.g. a GitHub issue description. We went through the currently available solutions, and this is something we came up with: |
A question to everyone interested in this feature, from which tools do you copy the markdown to paste it into the editor? |
Feature (markdown-gfm): Added an experimental support for pasting from markdown. Closes #2321.
Hello @Witoso, @niegowski, @martnpaneq I have a scenario, where I would like to support copy-pasting markdown content into EDITOR. However, I always want the output of the editor to be in the HTML format. I am assuming that the current plugin support inputing and outputing only in markdown format. Also, if it supports I would like to know how to add the plugin to the online-build generated from online ckeditor tool. |
@DvzH this is precisely what experimental Paste Markdown is doing. It works in HTML and Markdown editor. > Also, if it supports I would like to know how to add the plugin to the online-build generated from online ckeditor tool. It's still experimental, that's why it's not added there yet. Make sure you install the package in the online builder folder, add the plugin to list in the |
Thank you @Witoso for the information, As a workaround what I did is, I used |
At the moment, when using the |
Let's keep this issue open for gathering feedback. |
[UPDATE] We have implemented the Paste Markdown feature, which is currently in the experimental phase. Please be aware that bugs may occur, and it is not recommended for use in production environments.
We keep this issue open to gather the feedback for the potential production release of this feature.
If you'd like to see this feature implemented, add 👍 to this post.
The text was updated successfully, but these errors were encountered: