fuellink mailto

This has been bugging me for a while. Adding a "mailto:" link into CKEditor's fuellink button always adds the {site_url()} prefix and suffix. Effectively breaking the page.

The code in question is line 488 of jquery.markitup.set.js:

var isHTTP = (selectedUrl.match(/^\w+:\/\//)) ? true : false;

I've changed it to:

var isHTTP = (((selectedUrl.match(/^\w+:\/\//))) || ((selectedUrl.match(/^mailto:/)))) ? true : false;

And so far it seems to have fixed it.

Comments

  • Thanks for the report and recommended fix. I've pushed that change to the develop branch.

Sign In or Register to comment.