wire/modules/Inputfield/InputfieldCKEditor/plugins/pwlink/plugin.js
// action when insert link button is clicked
action when insert link button is clicked
action when insert link button is clicked
function clickInsert() {
			var $i = $iframe.contents();
			var $a = jQuery(jQuery("#link_markup", $i).text());
			if($a.attr('href') && $a.attr('href').length) {
				if($a.text() === selectionText || !$a.text().length) {
					$a.html(selectionHtml);
				}
				var html = jQuery("<div />").append($a).html();
				var el = CKEDITOR.dom.element.createFromHtml(html);
				editor.insertElement(el); 
			}
			$iframe.dialog("close");
		}
function clickInsert ( ) { var $i = $iframe . contents ( ) ; var $a = jQuery ( jQuery ( "#link_markup" , $i ) . text ( ) ) ; if ( $a . attr ( 'href' ) && $a . attr ( 'href' ) . length ) { if ( $a . text ( ) === selectionText || ! $a . text ( ) . length ) { $a . html ( selectionHtml ) ; } var html = jQuery ( "<div />" ) . append ( $a ) . html ( ) ; var el = CKEDITOR . dom . element . createFromHtml ( html ) ; editor . insertElement ( el ) ; } $iframe . dialog ( "close" ) ; }
action when insert link button is clicked
action when insert link button is clicked
// if input text has not changed from original, then use the original HTML rather than the text // was: editor.insertHtml(html);