This object is in archive! 
Upvote 1

Cannot add mailto link; says invalid

Archived Annevar Media, LLC 9 years ago

I am currently using 2.3.11 and when I try and add a mailto link using your Link button, it tells me "Link is not Valid!" This seems to be fixed in the 3.x beta. Do you plan on fixing this for 2.3.x?

Replies (2)

photo
1

Hello,

You're right, UseResponse 2.3.11 has such issue with mailto links.

As for now we fix only critical issues for version 2.

By the way you may change the code by yourself:


  1. Open file /public/assets/js/textareaResizer.js
  2. Replace lines 464-471:
    1. if (url) {
    2. regexp = new RegExp('^(?:f|ht)tp(?:s)?\://([^/]+)', 'im');
    3. if (url.match(regexp)) {
    4. editorCommand(textAreaEditor.get(0), 'CreateLink', url);
    5. } else {
    6. alert(App.t("Link is not Valid!"));
    7. }
    8. }

    with:


    1. if (url) {
    2. editorCommand(textAreaEditor.get(0), 'CreateLink', url);
    3. }

Thats all.

photo
1

And that works. I realize it now allows anything in there, but allowing mailto is important enough to us. Thanks!

photo
1

You are welcome

Replies have been locked on this page!