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.52k stars 3.7k forks source link

Add custom property for the content copied from the editor in the clipboard pipeline #15935

Open Mgsy opened 8 months ago

Mgsy commented 8 months ago

📝 Provide a description of the improvement

In CKEditor 4, dataTransfer object has a custom property (https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_plugins_clipboard_dataTransfer.html#property-sourceEditor) that indicates whether the data has been copied from the editor.

It would be nice to introduce a way for detecting whether copied content is coming from CKEditor 5.


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

Witoso commented 8 months ago

This is interesting, what is the use case, how such property is used?

Mgsy commented 8 months ago

This is interesting, what is the use case, how such property is used?

The use case that has been described to us is the situation when the content, especially images, needs to be wrapped in a special container and labeled, to indicate the external source.