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
editor.insert could not insert custom html tags #901
Comments
Thanks for reporting! This is caused by the filtering done to prevent XSS. Before HTML is inserted into the editor it's filtered using DOMPurify. It looks like DOMPurify removes all custom elements by default. Fixing this will probably require a new configuration option to specify allowed custom elements. |
thanks, i add in my SCEditor build new options allowedTags, allowedAttributes
and it's works |
That looks great. If you want to make a PR, it can be merged into the code base. |
@samclarke @fedot199614 Please review my PR: #925 |
Fixes #901 --------- Co-authored-by: Sam <sam@samclarke.com>
i try to insert custom html tag
<lottie-player>Test</lottie-player>
but it inserts only text - Test.olso i try wysiwygEditorInsertHtml - but no effect.
text area are emty -
<p><br></p>
The text was updated successfully, but these errors were encountered: