1 tinyMCEPopup.requireLangPack();
5 var action, elm, f = document.forms[0];
8 elm = ed.dom.getParent(ed.selection.getNode(), 'A');
9 v = ed.dom.getAttrib(elm, 'name');
12 this.action = 'update';
13 f.anchorName.value = v;
16 f.insert.value = ed.getLang(elm ? 'update' : 'insert');
20 var ed = this.editor, elm, name = document.forms[0].anchorName.value;
22 tinyMCEPopup.restoreSelection();
24 if (this.action != 'update')
25 ed.selection.collapse(1);
27 elm = ed.dom.getParent(ed.selection.getNode(), 'A');
31 ed.execCommand('mceInsertContent', 0, ed.dom.createHTML('a', {name : name, 'class' : 'mceItemAnchor'}, ''));
37 tinyMCEPopup.onInit.add(AnchorDialog.init, AnchorDialog);