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

Paste without formatting #139

Closed
cedrvanh opened this issue Sep 23, 2024 · 1 comment
Closed

Paste without formatting #139

cedrvanh opened this issue Sep 23, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@cedrvanh
Copy link

cedrvanh commented Sep 23, 2024

Hey,

Do you know if it's possible to paste with no formatting and as plain text without using Cmd+Shift+V? So 'automatically' strip tags and styling on Cmd+V?

Our use case is that we never want html tags, inline styling or anything else that could possibly get copied over from other sources. Do you have any suggestions on how I could go about this?

I've tried setting 'forcePasteAsPlainText => false' in the nova-config file but it didn't seem to work.

Thanks!

mostafaznv added a commit that referenced this issue Sep 25, 2024
@mostafaznv mostafaznv added enhancement New feature or request good first issue Good for newcomers labels Sep 25, 2024
mostafaznv added a commit that referenced this issue Sep 25, 2024
feat: force paste as plain text #139
@mostafaznv
Copy link
Owner

Hi,
This is not a built-in feature in CKEditor5. In fact, when you use the Clipboard plugin, it pastes content with its HTML tags. However, I’ve implemented this feature myself. 🚀

Please update the package to v7.5.0 and check the documentation here or here.
You can also refer to the original config file. You may need to update your local config based on the new changes.

Have a good day 🤘

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants