equal
deleted
inserted
replaced
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 |