cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

TinyMCE/Rich Text Editor - Insert Link/Image URL Handling

santosh51
Product and Topic Expert
Product and Topic Expert
0 Likes
506

Hello Team

I have a requirement where when someone press "Insert Link"/"Insert Image" button in editor, I need to validate the URL before it gets added into Editor. In other words, as soon as someone clicks on "OK" button, I have to read the URL input and validate it before it gets added into the editor. If the validation fails then I need to show some error.

I tried to capture the "link" plugin/command during runtime but it does not stop when the button is pressed. I tried with many other possible commands like "InsertLink", "mceLink", "InsertImage",etc,.

I have gone thru the TinyMCE documentation but could not find any exact event to achieve this functionality.

Could you please suggest if its possible to achieve this requirement & how to achieve it.

Thank you in advance.. 🙂

Accepted Solutions (0)

Answers (0)