How can I sanitize pasting in paragraph? #2958
Unanswered
adaptedbee
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I need some way to transform html content, when it is pasted in paragraph.
So I tried to use
sanitize
field for that.Firstly, I found out that
SanitizerConfig
seems to have some problem with typing (see my issue). I need to use function likeb: el => el.id !== '';
, but it didn't work.Secondly, I tried to use some
boolean
s andobject
s forsanitize
, but it didn't work either.Than, I explored that repository and found out that
sanitize
field seems not to be used anywhere.(I tried to comment it in types, than did
lint
/build:test
and nothing was broken.So, the questions are:
sanitize
field really not actual anymore?(I tried
onPaste
function too, but it seems that it's not being called, like here)Beta Was this translation helpful? Give feedback.
All reactions