From f3b6f8b82439c14c85b7b10339ba28f81fb4202e Mon Sep 17 00:00:00 2001 From: Henning Leutz <leutz@pcsg.de> Date: Fri, 7 Feb 2014 15:20:55 +0100 Subject: [PATCH] empty protokoll at link plugin --- bin/Editor.js | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/bin/Editor.js b/bin/Editor.js index 5270e5a..9addce5 100644 --- a/bin/Editor.js +++ b/bin/Editor.js @@ -118,6 +118,7 @@ define('package/quiqqer/ckeditor4/bin/Editor', [ window.CKEDITOR.replace(instance, { language : Locale.getCurrent(), baseHref : URL_DIR, + basePath : URL_DIR, height : Instance.getSize().y - 140, width : Instance.getSize().x + 20, // toolbar : CKEDITOR_NEXGAM_TOOLBAR, @@ -365,12 +366,30 @@ define('package/quiqqer/ckeditor4/bin/Editor', [ dialogDefinition = ev.data.definition; /** - * Image dialog + * Link dialog */ if ( dialogName != 'link' ) { return ev; } + // remove protokoll dropdown + dialogDefinition.getContents( 'info' ).remove( 'protocol'); + + // remove protokoll at insertion + var Url = dialogDefinition.getContents( 'info' ).get( 'url' ), + orgCommit = Url.commit; + + Url.commit = function( data ) + { + orgCommit.call( this, data ); + + data.url = { + protocol: '', + url: this.getValue() + }; + }; + + // Get a reference to the "Link Info" tab. dialogDefinition.onShow = function() { @@ -378,7 +397,6 @@ define('package/quiqqer/ckeditor4/bin/Editor', [ .getElement() .$; - if ( UrlGroup.getElement( '.qui-button' ) ) { return; } -- GitLab