Image: how to disable add a image by pasting #2164
Answered
by
cadars
DengSihan
asked this question in
Questions & Help
-
Thanks a lot for what remarkable jobs you've done! In Image extension when user is pasting a image from clipboard which copy from third part domain, such as http://a.com/test.jpg, they may cause a One-pixel attack. So, my question is how to prevent add a image by pasting, or how to handle the pasting event customly for image extension? |
Beta Was this translation helpful? Give feedback.
Answered by
cadars
Nov 14, 2021
Replies: 1 comment 1 reply
-
Maybe you could extend the Image extension and rewrite parseHTML() {
//return [
// {
// tag: 'img[src]',
// },
//]
}, |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
DengSihan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe you could extend the Image extension and rewrite
parseHTML
this way?I'm not sure, it might become a problem if you parse HTML later.