includes/clientside/tinymce/themes/advanced/js/anchor.js
changeset 395 fa4c5ecb7c9a
parent 335 67bd3121a12e
child 543 dffcbfbc4e59
equal deleted inserted replaced
394:fbfdcea634a7 395:fa4c5ecb7c9a
    14 		f.insert.value = ed.getLang(elm ? 'update' : 'insert');
    14 		f.insert.value = ed.getLang(elm ? 'update' : 'insert');
    15 	},
    15 	},
    16 
    16 
    17 	update : function() {
    17 	update : function() {
    18 		var ed = this.editor;
    18 		var ed = this.editor;
       
    19 		
       
    20 		tinyMCEPopup.restoreSelection();
       
    21 		ed.selection.collapse(1);
    19 
    22 
    20 		// Webkit acts weird if empty inline element is inserted so we need to use a image instead
    23 		// Webkit acts weird if empty inline element is inserted so we need to use a image instead
    21 		if (tinymce.isWebKit)
    24 		if (tinymce.isWebKit)
    22 			ed.execCommand('mceInsertContent', 0, ed.dom.createHTML('img', {mce_name : 'a', name : document.forms[0].anchorName.value, 'class' : 'mceItemAnchor'}));
    25 			ed.execCommand('mceInsertContent', 0, ed.dom.createHTML('img', {mce_name : 'a', name : document.forms[0].anchorName.value, 'class' : 'mceItemAnchor'}));
    23 		else
    26 		else