Skip to content

possibility to provide custom validations for link/image url #312

Closed Answered by sibiraj-s
Maks-Yaremenko asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by sibiraj-s
Comment options

You must be logged in to vote
1 reply
@sibiraj-s
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants