possibility to provide custom validations for link/image url #312
-
It would be great to add custom validation for image/link URL, currently, some valid URLs doesn't pass default validation. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Menu component is supposed to be auxiliary. I am not sure adding/providing custom validators or more function will help always. Since the requirement changes always. I have exposed commands in v6.1.0-beta.0. with that you should be able to insertLink this.editor.commands
.insertImage("https://<YOUR_IMAGE_URL>")
.exec(); and by using customMenu you should be able to create/apply whatever functions needed with ease. |
Beta Was this translation helpful? Give feedback.
-
As @Maks-Yaremenko said, some valid URLs doesn't pass default validation. So, would there be any possibility to disable validation? |
Beta Was this translation helpful? Give feedback.
Menu component is supposed to be auxiliary. I am not sure adding/providing custom validators or more function will help always. Since the requirement changes always.
I have exposed commands in v6.1.0-beta.0. with that you should be able to insertLink
and by using customMenu you should be able to create/apply whatever functions needed with ease.