Skip to content
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

custom node for snipet in textEditor #1

Open
trung3t123 opened this issue Nov 16, 2023 · 1 comment
Open

custom node for snipet in textEditor #1

trung3t123 opened this issue Nov 16, 2023 · 1 comment

Comments

@trung3t123
Copy link

Do you think we can add a feature to wrap the snipet in an custom node that cannot be edit inside editor, and user can delete it by one click instead of delete word by word.
I refer from this function of CKeditor , please try
https://ckeditor.com/docs/ckeditor5/latest/features/drag-drop.html

@sereneinserenade
Copy link
Owner

If you'd like to replicate CKEditor's drop, it'll require making a custom node with a nodeview that renders the x button to remove the node.

For plain text, it'll require more logic to remove the dropped content.

In any case, it goes beyond the scope of the extension since it's a custom behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants