David.. Posted August 2, 2018 Posted August 2, 2018 Which file do I need to modify to disable the automatic http:// addition when adding a URL in CKEditor? I wanted to add a link which needs to be clickable, but does not require the http(s):// protocol. Example: magnet:?xt=urn:btih:01010846894794babc80c20d7d4fe21540a86632..... This is a link but if you add that to CKEditor, it will break it by automatically adding the http in front: magnet:?xt=urn:btih:01010846894794babc80c20d7d4fe21540a86632 What do I need to edit to prevent that?
newbie LAC Posted August 2, 2018 Posted August 2, 2018 \applications\core\data\javascript.xml if ( !url.match( /^[a-z]+\:\/\//i ) && !url.match( /^mailto\:/i ) && !url.match( /^\#/ ) ) { url = 'http://' + url.replace( /^\/*/, '' ); }
Recommended Posts
Archived
This topic is now archived and is closed to further replies.