| | |
| | | document.getElementById('popupurl').style.width = '180px';
|
| | |
|
| | | elm = inst.dom.getParent(elm, "A");
|
| | | if (elm == null) {
|
| | | var prospect = inst.dom.create("p", null, inst.selection.getContent());
|
| | | if (prospect.childNodes.length === 1) {
|
| | | elm = prospect.firstChild;
|
| | | }
|
| | | }
|
| | |
|
| | | if (elm != null && elm.nodeName == "A")
|
| | | action = "update";
|
| | |
|
| | |
| | | var html = "";
|
| | |
|
| | | html += '<select id="' + elm_id + '" name="' + elm_id + '"';
|
| | | html += ' class="mceLinkList" onfoc2us="tinyMCE.addSelectAccessibility(event, this, window);" onchange="this.form.' + target_form_element + '.value=';
|
| | | html += ' class="mceLinkList" onchange="this.form.' + target_form_element + '.value=';
|
| | | html += 'this.options[this.selectedIndex].value;';
|
| | |
|
| | | if (typeof(onchange_func) != "undefined")
|
| | |
| | | var targets = tinyMCEPopup.getParam('theme_advanced_link_targets', '').split(';');
|
| | | var html = '';
|
| | |
|
| | | html += '<select id="' + elm_id + '" name="' + elm_id + '" onf2ocus="tinyMCE.addSelectAccessibility(event, this, window);" onchange="this.form.' + target_form_element + '.value=';
|
| | | html += '<select id="' + elm_id + '" name="' + elm_id + '" onchange="this.form.' + target_form_element + '.value=';
|
| | | html += 'this.options[this.selectedIndex].value;">';
|
| | | html += '<option value="_self">' + tinyMCEPopup.getLang('advlink_dlg.target_same') + '</option>';
|
| | | html += '<option value="_blank">' + tinyMCEPopup.getLang('advlink_dlg.target_blank') + ' (_blank)</option>';
|