diff options
author | Marvin Borner | 2018-07-13 19:06:45 +0200 |
---|---|---|
committer | Marvin Borner | 2018-07-13 19:06:45 +0200 |
commit | 6fcfb7c04d32e1c8b26a312295bf7ac3ec2d2ad7 (patch) | |
tree | dbc87ef16fa01d5d99116de283592b8fe5e02944 /public/bower_components/ckeditor/plugins/autolink | |
parent | dfd839f27146df0ad0494e11734fc7d310c70ebf (diff) |
Fixed many permissions and began admin interface
Diffstat (limited to 'public/bower_components/ckeditor/plugins/autolink')
-rw-r--r-- | public/bower_components/ckeditor/plugins/autolink/plugin.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/public/bower_components/ckeditor/plugins/autolink/plugin.js b/public/bower_components/ckeditor/plugins/autolink/plugin.js new file mode 100644 index 0000000..fcf3579 --- /dev/null +++ b/public/bower_components/ckeditor/plugins/autolink/plugin.js @@ -0,0 +1,6 @@ +/* + Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. + For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license +*/ +(function(){var g=/^(https?|ftp):\/\/(-\.)?([^\s\/?\.#]+\.?)+(\/[^\s]*)?[^\s\.,]$/ig,e=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/g,f=/"/g;CKEDITOR.plugins.add("autolink",{requires:"clipboard",init:function(c){c.on("paste",function(d){var a=d.data.dataValue;if(d.data.dataTransfer.getTransferType(c)!=CKEDITOR.DATA_TRANSFER_INTERNAL&&!(-1<a.indexOf("\x3c"))){if(a.match(e)){if(a=a.replace(e,'\x3ca href\x3d"mailto:'+ +a.replace(f,"%22")+'"\x3e$\x26\x3c/a\x3e'),c.plugins.link){var a=CKEDITOR.dom.element.createFromHtml(a),b=CKEDITOR.plugins.link.parseLinkAttributes(c,a),b=CKEDITOR.plugins.link.getLinkAttributes(c,b);CKEDITOR.tools.isEmpty(b.set)||a.setAttributes(b.set);b.removed.length&&a.removeAttributes(b.removed);a=a.getOuterHtml()}}else a=a.replace(g,'\x3ca href\x3d"'+a.replace(f,"%22")+'"\x3e$\x26\x3c/a\x3e');a!=d.data.dataValue&&(d.data.type="html");d.data.dataValue=a}})}})})();
\ No newline at end of file |