-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
How to remove unwanted formatting in pasted text #1687
Comments
When you say you are including only a limited selection of formatting options, are you specifying a whitelist of For example in my app I use these editor options:
|
if you landed here if you're using vue2-editor,
Component:
|
@Mushood thanks for the tips But it still will keep the format if it under the allowed tags. For example we allow tags. And under the tags, there is a span tag with styles.
|
It looks like 'matchVisual: false' has been removed from the support docs. Is it still valid? |
In my Quill editor, I am including only a limited selection of formatting options (bold, underlined, italic, link, blockquote, numerated list, bullet list). Now, I want to prevent users from bypassing these limitations by pasting formatted text (e.g. containing other text colors, monospace text, backgrounds, images) from a web page / document. How can I filter the text / content which is pasted into the quill editor in order to remove any other formatting options and elements apart from those stated above?
I am using Quill 1.3.1 with Angular.
The text was updated successfully, but these errors were encountered: