aboutsummaryrefslogtreecommitdiffstats
path: root/library/tinymce/jscripts/tiny_mce/plugins/advlink
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-05-30 22:16:34 -0700
committerredmatrix <git@macgirvin.com>2016-05-30 22:16:34 -0700
commit670e83b30050201e3ac069c9dfa86a92aff2431d (patch)
tree1280e93b6435fcca43d85a940c64d24c8c07936b /library/tinymce/jscripts/tiny_mce/plugins/advlink
parent44d3dadb03406a811c30340c814b3f95483a6a6d (diff)
downloadvolse-hubzilla-670e83b30050201e3ac069c9dfa86a92aff2431d.tar.gz
volse-hubzilla-670e83b30050201e3ac069c9dfa86a92aff2431d.tar.bz2
volse-hubzilla-670e83b30050201e3ac069c9dfa86a92aff2431d.zip
remove a bunch of unused stuff, some of which is orphaned and some which represents dead development efforts
Diffstat (limited to 'library/tinymce/jscripts/tiny_mce/plugins/advlink')
-rw-r--r--library/tinymce/jscripts/tiny_mce/plugins/advlink/css/advlink.css8
-rw-r--r--library/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin.js1
-rw-r--r--library/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin_src.js61
-rw-r--r--library/tinymce/jscripts/tiny_mce/plugins/advlink/js/advlink.js539
-rw-r--r--library/tinymce/jscripts/tiny_mce/plugins/advlink/langs/en_dlg.js1
-rw-r--r--library/tinymce/jscripts/tiny_mce/plugins/advlink/link.htm338
6 files changed, 0 insertions, 948 deletions
diff --git a/library/tinymce/jscripts/tiny_mce/plugins/advlink/css/advlink.css b/library/tinymce/jscripts/tiny_mce/plugins/advlink/css/advlink.css
deleted file mode 100644
index 14364316a..000000000
--- a/library/tinymce/jscripts/tiny_mce/plugins/advlink/css/advlink.css
+++ /dev/null
@@ -1,8 +0,0 @@
-.mceLinkList, .mceAnchorList, #targetlist {width:280px;}
-.mceActionPanel {margin-top:7px;}
-.panel_wrapper div.current {height:320px;}
-#classlist, #title, #href {width:280px;}
-#popupurl, #popupname {width:200px;}
-#popupwidth, #popupheight, #popupleft, #popuptop {width:30px;vertical-align:middle;text-align:center;}
-#id, #style, #classes, #target, #dir, #hreflang, #lang, #charset, #type, #rel, #rev, #tabindex, #accesskey {width:200px;}
-#events_panel input {width:200px;}
diff --git a/library/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin.js b/library/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin.js
deleted file mode 100644
index 983fe5a9c..000000000
--- a/library/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin.js
+++ /dev/null
@@ -1 +0,0 @@
-(function(){tinymce.create("tinymce.plugins.AdvancedLinkPlugin",{init:function(a,b){this.editor=a;a.addCommand("mceAdvLink",function(){var c=a.selection;if(c.isCollapsed()&&!a.dom.getParent(c.getNode(),"A")){return}a.windowManager.open({file:b+"/link.htm",width:480+parseInt(a.getLang("advlink.delta_width",0)),height:400+parseInt(a.getLang("advlink.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("link",{title:"advlink.link_desc",cmd:"mceAdvLink"});a.addShortcut("ctrl+k","advlink.advlink_desc","mceAdvLink");a.onNodeChange.add(function(d,c,f,e){c.setDisabled("link",e&&f.nodeName!="A");c.setActive("link",f.nodeName=="A"&&!f.name)})},getInfo:function(){return{longname:"Advanced link",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advlink",tinymce.plugins.AdvancedLinkPlugin)})(); \ No newline at end of file
diff --git a/library/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin_src.js b/library/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin_src.js
deleted file mode 100644
index 14e46a762..000000000
--- a/library/tinymce/jscripts/tiny_mce/plugins/advlink/editor_plugin_src.js
+++ /dev/null
@@ -1,61 +0,0 @@
-/**
- * editor_plugin_src.js
- *
- * Copyright 2009, Moxiecode Systems AB
- * Released under LGPL License.
- *
- * License: http://tinymce.moxiecode.com/license
- * Contributing: http://tinymce.moxiecode.com/contributing
- */
-
-(function() {
- tinymce.create('tinymce.plugins.AdvancedLinkPlugin', {
- init : function(ed, url) {
- this.editor = ed;
-
- // Register commands
- ed.addCommand('mceAdvLink', function() {
- var se = ed.selection;
-
- // No selection and not in link
- if (se.isCollapsed() && !ed.dom.getParent(se.getNode(), 'A'))
- return;
-
- ed.windowManager.open({
- file : url + '/link.htm',
- width : 480 + parseInt(ed.getLang('advlink.delta_width', 0)),
- height : 400 + parseInt(ed.getLang('advlink.delta_height', 0)),
- inline : 1
- }, {
- plugin_url : url
- });
- });
-
- // Register buttons
- ed.addButton('link', {
- title : 'advlink.link_desc',
- cmd : 'mceAdvLink'
- });
-
- ed.addShortcut('ctrl+k', 'advlink.advlink_desc', 'mceAdvLink');
-
- ed.onNodeChange.add(function(ed, cm, n, co) {
- cm.setDisabled('link', co && n.nodeName != 'A');
- cm.setActive('link', n.nodeName == 'A' && !n.name);
- });
- },
-
- getInfo : function() {
- return {
- longname : 'Advanced link',
- author : 'Moxiecode Systems AB',
- authorurl : 'http://tinymce.moxiecode.com',
- infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advlink',
- version : tinymce.majorVersion + "." + tinymce.minorVersion
- };
- }
- });
-
- // Register plugin
- tinymce.PluginManager.add('advlink', tinymce.plugins.AdvancedLinkPlugin);
-})(); \ No newline at end of file
diff --git a/library/tinymce/jscripts/tiny_mce/plugins/advlink/js/advlink.js b/library/tinymce/jscripts/tiny_mce/plugins/advlink/js/advlink.js
deleted file mode 100644
index 9ca955c92..000000000
--- a/library/tinymce/jscripts/tiny_mce/plugins/advlink/js/advlink.js
+++ /dev/null
@@ -1,539 +0,0 @@
-/* Functions for the advlink plugin popup */
-
-tinyMCEPopup.requireLangPack();
-
-var templates = {
- "window.open" : "window.open('${url}','${target}','${options}')"
-};
-
-function preinit() {
- var url;
-
- if (url = tinyMCEPopup.getParam("external_link_list_url"))
- document.write('<script language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></script>');
-}
-
-function changeClass() {
- var f = document.forms[0];
-
- f.classes.value = getSelectValue(f, 'classlist');
-}
-
-function init() {
- tinyMCEPopup.resizeToInnerSize();
-
- var formObj = document.forms[0];
- var inst = tinyMCEPopup.editor;
- var elm = inst.selection.getNode();
- var action = "insert";
- var html;
-
- document.getElementById('hrefbrowsercontainer').innerHTML = getBrowserHTML('hrefbrowser','href','file','advlink');
- document.getElementById('popupurlbrowsercontainer').innerHTML = getBrowserHTML('popupurlbrowser','popupurl','file','advlink');
- document.getElementById('targetlistcontainer').innerHTML = getTargetListHTML('targetlist','target');
-
- // Link list
- html = getLinkListHTML('linklisthref','href');
- if (html == "")
- document.getElementById("linklisthrefrow").style.display = 'none';
- else
- document.getElementById("linklisthrefcontainer").innerHTML = html;
-
- // Anchor list
- html = getAnchorListHTML('anchorlist','href');
- if (html == "")
- document.getElementById("anchorlistrow").style.display = 'none';
- else
- document.getElementById("anchorlistcontainer").innerHTML = html;
-
- // Resize some elements
- if (isVisible('hrefbrowser'))
- document.getElementById('href').style.width = '260px';
-
- if (isVisible('popupurlbrowser'))
- 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";
-
- formObj.insert.value = tinyMCEPopup.getLang(action, 'Insert', true);
-
- setPopupControlsDisabled(true);
-
- if (action == "update") {
- var href = inst.dom.getAttrib(elm, 'href');
- var onclick = inst.dom.getAttrib(elm, 'onclick');
-
- // Setup form data
- setFormValue('href', href);
- setFormValue('title', inst.dom.getAttrib(elm, 'title'));
- setFormValue('id', inst.dom.getAttrib(elm, 'id'));
- setFormValue('style', inst.dom.getAttrib(elm, "style"));
- setFormValue('rel', inst.dom.getAttrib(elm, 'rel'));
- setFormValue('rev', inst.dom.getAttrib(elm, 'rev'));
- setFormValue('charset', inst.dom.getAttrib(elm, 'charset'));
- setFormValue('hreflang', inst.dom.getAttrib(elm, 'hreflang'));
- setFormValue('dir', inst.dom.getAttrib(elm, 'dir'));
- setFormValue('lang', inst.dom.getAttrib(elm, 'lang'));
- setFormValue('tabindex', inst.dom.getAttrib(elm, 'tabindex', typeof(elm.tabindex) != "undefined" ? elm.tabindex : ""));
- setFormValue('accesskey', inst.dom.getAttrib(elm, 'accesskey', typeof(elm.accesskey) != "undefined" ? elm.accesskey : ""));
- setFormValue('type', inst.dom.getAttrib(elm, 'type'));
- setFormValue('onfocus', inst.dom.getAttrib(elm, 'onfocus'));
- setFormValue('onblur', inst.dom.getAttrib(elm, 'onblur'));
- setFormValue('onclick', onclick);
- setFormValue('ondblclick', inst.dom.getAttrib(elm, 'ondblclick'));
- setFormValue('onmousedown', inst.dom.getAttrib(elm, 'onmousedown'));
- setFormValue('onmouseup', inst.dom.getAttrib(elm, 'onmouseup'));
- setFormValue('onmouseover', inst.dom.getAttrib(elm, 'onmouseover'));
- setFormValue('onmousemove', inst.dom.getAttrib(elm, 'onmousemove'));
- setFormValue('onmouseout', inst.dom.getAttrib(elm, 'onmouseout'));
- setFormValue('onkeypress', inst.dom.getAttrib(elm, 'onkeypress'));
- setFormValue('onkeydown', inst.dom.getAttrib(elm, 'onkeydown'));
- setFormValue('onkeyup', inst.dom.getAttrib(elm, 'onkeyup'));
- setFormValue('target', inst.dom.getAttrib(elm, 'target'));
- setFormValue('classes', inst.dom.getAttrib(elm, 'class'));
-
- // Parse onclick data
- if (onclick != null && onclick.indexOf('window.open') != -1)
- parseWindowOpen(onclick);
- else
- parseFunction(onclick);
-
- // Select by the values
- selectByValue(formObj, 'dir', inst.dom.getAttrib(elm, 'dir'));
- selectByValue(formObj, 'rel', inst.dom.getAttrib(elm, 'rel'));
- selectByValue(formObj, 'rev', inst.dom.getAttrib(elm, 'rev'));
- selectByValue(formObj, 'linklisthref', href);
-
- if (href.charAt(0) == '#')
- selectByValue(formObj, 'anchorlist', href);
-
- addClassesToList('classlist', 'advlink_styles');
-
- selectByValue(formObj, 'classlist', inst.dom.getAttrib(elm, 'class'), true);
- selectByValue(formObj, 'targetlist', inst.dom.getAttrib(elm, 'target'), true);
- } else
- addClassesToList('classlist', 'advlink_styles');
-}
-
-function checkPrefix(n) {
- if (n.value && Validator.isEmail(n) && !/^\s*mailto:/i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_email')))
- n.value = 'mailto:' + n.value;
-
- if (/^\s*www\./i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_external')))
- n.value = 'http://' + n.value;
-}
-
-function setFormValue(name, value) {
- document.forms[0].elements[name].value = value;
-}
-
-function parseWindowOpen(onclick) {
- var formObj = document.forms[0];
-
- // Preprocess center code
- if (onclick.indexOf('return false;') != -1) {
- formObj.popupreturn.checked = true;
- onclick = onclick.replace('return false;', '');
- } else
- formObj.popupreturn.checked = false;
-
- var onClickData = parseLink(onclick);
-
- if (onClickData != null) {
- formObj.ispopup.checked = true;
- setPopupControlsDisabled(false);
-
- var onClickWindowOptions = parseOptions(onClickData['options']);
- var url = onClickData['url'];
-
- formObj.popupname.value = onClickData['target'];
- formObj.popupurl.value = url;
- formObj.popupwidth.value = getOption(onClickWindowOptions, 'width');
- formObj.popupheight.value = getOption(onClickWindowOptions, 'height');
-
- formObj.popupleft.value = getOption(onClickWindowOptions, 'left');
- formObj.popuptop.value = getOption(onClickWindowOptions, 'top');
-
- if (formObj.popupleft.value.indexOf('screen') != -1)
- formObj.popupleft.value = "c";
-
- if (formObj.popuptop.value.indexOf('screen') != -1)
- formObj.popuptop.value = "c";
-
- formObj.popuplocation.checked = getOption(onClickWindowOptions, 'location') == "yes";
- formObj.popupscrollbars.checked = getOption(onClickWindowOptions, 'scrollbars') == "yes";
- formObj.popupmenubar.checked = getOption(onClickWindowOptions, 'menubar') == "yes";
- formObj.popupresizable.checked = getOption(onClickWindowOptions, 'resizable') == "yes";
- formObj.popuptoolbar.checked = getOption(onClickWindowOptions, 'toolbar') == "yes";
- formObj.popupstatus.checked = getOption(onClickWindowOptions, 'status') == "yes";
- formObj.popupdependent.checked = getOption(onClickWindowOptions, 'dependent') == "yes";
-
- buildOnClick();
- }
-}
-
-function parseFunction(onclick) {
- var formObj = document.forms[0];
- var onClickData = parseLink(onclick);
-
- // TODO: Add stuff here
-}
-
-function getOption(opts, name) {
- return typeof(opts[name]) == "undefined" ? "" : opts[name];
-}
-
-function setPopupControlsDisabled(state) {
- var formObj = document.forms[0];
-
- formObj.popupname.disabled = state;
- formObj.popupurl.disabled = state;
- formObj.popupwidth.disabled = state;
- formObj.popupheight.disabled = state;
- formObj.popupleft.disabled = state;
- formObj.popuptop.disabled = state;
- formObj.popuplocation.disabled = state;
- formObj.popupscrollbars.disabled = state;
- formObj.popupmenubar.disabled = state;
- formObj.popupresizable.disabled = state;
- formObj.popuptoolbar.disabled = state;
- formObj.popupstatus.disabled = state;
- formObj.popupreturn.disabled = state;
- formObj.popupdependent.disabled = state;
-
- setBrowserDisabled('popupurlbrowser', state);
-}
-
-function parseLink(link) {
- link = link.replace(new RegExp('&#39;', 'g'), "'");
-
- var fnName = link.replace(new RegExp("\\s*([A-Za-z0-9\.]*)\\s*\\(.*", "gi"), "$1");
-
- // Is function name a template function
- var template = templates[fnName];
- if (template) {
- // Build regexp
- var variableNames = template.match(new RegExp("'?\\$\\{[A-Za-z0-9\.]*\\}'?", "gi"));
- var regExp = "\\s*[A-Za-z0-9\.]*\\s*\\(";
- var replaceStr = "";
- for (var i=0; i<variableNames.length; i++) {
- // Is string value
- if (variableNames[i].indexOf("'${") != -1)
- regExp += "'(.*)'";
- else // Number value
- regExp += "([0-9]*)";
-
- replaceStr += "$" + (i+1);
-
- // Cleanup variable name
- variableNames[i] = variableNames[i].replace(new RegExp("[^A-Za-z0-9]", "gi"), "");
-
- if (i != variableNames.length-1) {
- regExp += "\\s*,\\s*";
- replaceStr += "<delim>";
- } else
- regExp += ".*";
- }
-
- regExp += "\\);?";
-
- // Build variable array
- var variables = [];
- variables["_function"] = fnName;
- var variableValues = link.replace(new RegExp(regExp, "gi"), replaceStr).split('<delim>');
- for (var i=0; i<variableNames.length; i++)
- variables[variableNames[i]] = variableValues[i];
-
- return variables;
- }
-
- return null;
-}
-
-function parseOptions(opts) {
- if (opts == null || opts == "")
- return [];
-
- // Cleanup the options
- opts = opts.toLowerCase();
- opts = opts.replace(/;/g, ",");
- opts = opts.replace(/[^0-9a-z=,]/g, "");
-
- var optionChunks = opts.split(',');
- var options = [];
-
- for (var i=0; i<optionChunks.length; i++) {
- var parts = optionChunks[i].split('=');
-
- if (parts.length == 2)
- options[parts[0]] = parts[1];
- }
-
- return options;
-}
-
-function buildOnClick() {
- var formObj = document.forms[0];
-
- if (!formObj.ispopup.checked) {
- formObj.onclick.value = "";
- return;
- }
-
- var onclick = "window.open('";
- var url = formObj.popupurl.value;
-
- onclick += url + "','";
- onclick += formObj.popupname.value + "','";
-
- if (formObj.popuplocation.checked)
- onclick += "location=yes,";
-
- if (formObj.popupscrollbars.checked)
- onclick += "scrollbars=yes,";
-
- if (formObj.popupmenubar.checked)
- onclick += "menubar=yes,";
-
- if (formObj.popupresizable.checked)
- onclick += "resizable=yes,";
-
- if (formObj.popuptoolbar.checked)
- onclick += "toolbar=yes,";
-
- if (formObj.popupstatus.checked)
- onclick += "status=yes,";
-
- if (formObj.popupdependent.checked)
- onclick += "dependent=yes,";
-
- if (formObj.popupwidth.value != "")
- onclick += "width=" + formObj.popupwidth.value + ",";
-
- if (formObj.popupheight.value != "")
- onclick += "height=" + formObj.popupheight.value + ",";
-
- if (formObj.popupleft.value != "") {
- if (formObj.popupleft.value != "c")
- onclick += "left=" + formObj.popupleft.value + ",";
- else
- onclick += "left='+(screen.availWidth/2-" + (formObj.popupwidth.value/2) + ")+',";
- }
-
- if (formObj.popuptop.value != "") {
- if (formObj.popuptop.value != "c")
- onclick += "top=" + formObj.popuptop.value + ",";
- else
- onclick += "top='+(screen.availHeight/2-" + (formObj.popupheight.value/2) + ")+',";
- }
-
- if (onclick.charAt(onclick.length-1) == ',')
- onclick = onclick.substring(0, onclick.length-1);
-
- onclick += "');";
-
- if (formObj.popupreturn.checked)
- onclick += "return false;";
-
- // tinyMCE.debug(onclick);
-
- formObj.onclick.value = onclick;
-
- if (formObj.href.value == "")
- formObj.href.value = url;
-}
-
-function setAttrib(elm, attrib, value) {
- var formObj = document.forms[0];
- var valueElm = formObj.elements[attrib.toLowerCase()];
- var dom = tinyMCEPopup.editor.dom;
-
- if (typeof(value) == "undefined" || value == null) {
- value = "";
-
- if (valueElm)
- value = valueElm.value;
- }
-
- // Clean up the style
- if (attrib == 'style')
- value = dom.serializeStyle(dom.parseStyle(value), 'a');
-
- dom.setAttrib(elm, attrib, value);
-}
-
-function getAnchorListHTML(id, target) {
- var ed = tinyMCEPopup.editor, nodes = ed.dom.select('a'), name, i, len, html = "";
-
- for (i=0, len=nodes.length; i<len; i++) {
- if ((name = ed.dom.getAttrib(nodes[i], "name")) != "")
- html += '<option value="#' + name + '">' + name + '</option>';
- }
-
- if (html == "")
- return "";
-
- html = '<select id="' + id + '" name="' + id + '" class="mceAnchorList"'
- + ' onchange="this.form.' + target + '.value=this.options[this.selectedIndex].value"'
- + '>'
- + '<option value="">---</option>'
- + html
- + '</select>';
-
- return html;
-}
-
-function insertAction() {
- var inst = tinyMCEPopup.editor;
- var elm, elementArray, i;
-
- elm = inst.selection.getNode();
- checkPrefix(document.forms[0].href);
-
- elm = inst.dom.getParent(elm, "A");
-
- // Remove element if there is no href
- if (!document.forms[0].href.value) {
- i = inst.selection.getBookmark();
- inst.dom.remove(elm, 1);
- inst.selection.moveToBookmark(i);
- tinyMCEPopup.execCommand("mceEndUndoLevel");
- tinyMCEPopup.close();
- return;
- }
-
- // Create new anchor elements
- if (elm == null) {
- inst.getDoc().execCommand("unlink", false, null);
- tinyMCEPopup.execCommand("mceInsertLink", false, "#mce_temp_url#", {skip_undo : 1});
-
- elementArray = tinymce.grep(inst.dom.select("a"), function(n) {return inst.dom.getAttrib(n, 'href') == '#mce_temp_url#';});
- for (i=0; i<elementArray.length; i++)
- setAllAttribs(elm = elementArray[i]);
- } else
- setAllAttribs(elm);
-
- // Don't move caret if selection was image
- if (elm.childNodes.length != 1 || elm.firstChild.nodeName != 'IMG') {
- inst.focus();
- inst.selection.select(elm);
- inst.selection.collapse(0);
- tinyMCEPopup.storeSelection();
- }
-
- tinyMCEPopup.execCommand("mceEndUndoLevel");
- tinyMCEPopup.close();
-}
-
-function setAllAttribs(elm) {
- var formObj = document.forms[0];
- var href = formObj.href.value.replace(/ /g, '%20');
- var target = getSelectValue(formObj, 'targetlist');
-
- setAttrib(elm, 'href', href);
- setAttrib(elm, 'title');
- setAttrib(elm, 'target', target == '_self' ? '' : target);
- setAttrib(elm, 'id');
- setAttrib(elm, 'style');
- setAttrib(elm, 'class', getSelectValue(formObj, 'classlist'));
- setAttrib(elm, 'rel');
- setAttrib(elm, 'rev');
- setAttrib(elm, 'charset');
- setAttrib(elm, 'hreflang');
- setAttrib(elm, 'dir');
- setAttrib(elm, 'lang');
- setAttrib(elm, 'tabindex');
- setAttrib(elm, 'accesskey');
- setAttrib(elm, 'type');
- setAttrib(elm, 'onfocus');
- setAttrib(elm, 'onblur');
- setAttrib(elm, 'onclick');
- setAttrib(elm, 'ondblclick');
- setAttrib(elm, 'onmousedown');
- setAttrib(elm, 'onmouseup');
- setAttrib(elm, 'onmouseover');
- setAttrib(elm, 'onmousemove');
- setAttrib(elm, 'onmouseout');
- setAttrib(elm, 'onkeypress');
- setAttrib(elm, 'onkeydown');
- setAttrib(elm, 'onkeyup');
-
- // Refresh in old MSIE
- if (tinyMCE.isMSIE5)
- elm.outerHTML = elm.outerHTML;
-}
-
-function getSelectValue(form_obj, field_name) {
- var elm = form_obj.elements[field_name];
-
- if (!elm || elm.options == null || elm.selectedIndex == -1)
- return "";
-
- return elm.options[elm.selectedIndex].value;
-}
-
-function getLinkListHTML(elm_id, target_form_element, onchange_func) {
- if (typeof(tinyMCELinkList) == "undefined" || tinyMCELinkList.length == 0)
- return "";
-
- var html = "";
-
- html += '<select id="' + elm_id + '" name="' + elm_id + '"';
- html += ' class="mceLinkList" onchange="this.form.' + target_form_element + '.value=';
- html += 'this.options[this.selectedIndex].value;';
-
- if (typeof(onchange_func) != "undefined")
- html += onchange_func + '(\'' + target_form_element + '\',this.options[this.selectedIndex].text,this.options[this.selectedIndex].value);';
-
- html += '"><option value="">---</option>';
-
- for (var i=0; i<tinyMCELinkList.length; i++)
- html += '<option value="' + tinyMCELinkList[i][1] + '">' + tinyMCELinkList[i][0] + '</option>';
-
- html += '</select>';
-
- return html;
-
- // tinyMCE.debug('-- image list start --', html, '-- image list end --');
-}
-
-function getTargetListHTML(elm_id, target_form_element) {
- var targets = tinyMCEPopup.getParam('theme_advanced_link_targets', '').split(';');
- var html = '';
-
- 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>';
- html += '<option value="_parent">' + tinyMCEPopup.getLang('advlink_dlg.target_parent') + ' (_parent)</option>';
- html += '<option value="_top">' + tinyMCEPopup.getLang('advlink_dlg.target_top') + ' (_top)</option>';
-
- for (var i=0; i<targets.length; i++) {
- var key, value;
-
- if (targets[i] == "")
- continue;
-
- key = targets[i].split('=')[0];
- value = targets[i].split('=')[1];
-
- html += '<option value="' + key + '">' + value + ' (' + key + ')</option>';
- }
-
- html += '</select>';
-
- return html;
-}
-
-// While loading
-preinit();
-tinyMCEPopup.onInit.add(init);
diff --git a/library/tinymce/jscripts/tiny_mce/plugins/advlink/langs/en_dlg.js b/library/tinymce/jscripts/tiny_mce/plugins/advlink/langs/en_dlg.js
deleted file mode 100644
index 3169a5658..000000000
--- a/library/tinymce/jscripts/tiny_mce/plugins/advlink/langs/en_dlg.js
+++ /dev/null
@@ -1 +0,0 @@
-tinyMCE.addI18n('en.advlink_dlg',{"target_name":"Target Name",classes:"Classes",style:"Style",id:"ID","popup_position":"Position (X/Y)",langdir:"Language Direction","popup_size":"Size","popup_dependent":"Dependent (Mozilla/Firefox Only)","popup_resizable":"Make Window Resizable","popup_location":"Show Location Bar","popup_menubar":"Show Menu Bar","popup_toolbar":"Show Toolbars","popup_statusbar":"Show Status Bar","popup_scrollbars":"Show Scrollbars","popup_return":"Insert \'return false\'","popup_name":"Window Name","popup_url":"Popup URL",popup:"JavaScript Popup","target_blank":"Open in New Window","target_top":"Open in Top Frame (Replaces All Frames)","target_parent":"Open in Parent Window/Frame","target_same":"Open in This Window/Frame","anchor_names":"Anchors","popup_opts":"Options","advanced_props":"Advanced Properties","event_props":"Events","popup_props":"Popup Properties","general_props":"General Properties","advanced_tab":"Advanced","events_tab":"Events","popup_tab":"Popup","general_tab":"General",list:"Link List","is_external":"The URL you entered seems to be an external link. Do you want to add the required http:// prefix?","is_email":"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?",titlefield:"Title",target:"Target",url:"Link URL",title:"Insert/Edit Link","link_list":"Link List",rtl:"Right to Left",ltr:"Left to Right",accesskey:"AccessKey",tabindex:"TabIndex",rev:"Relationship Target to Page",rel:"Relationship Page to Target",mime:"Target MIME Type",encoding:"Target Character Encoding",langcode:"Language Code","target_langcode":"Target Language",width:"Width",height:"Height"}); \ No newline at end of file
diff --git a/library/tinymce/jscripts/tiny_mce/plugins/advlink/link.htm b/library/tinymce/jscripts/tiny_mce/plugins/advlink/link.htm
deleted file mode 100644
index 8ab7c2a95..000000000
--- a/library/tinymce/jscripts/tiny_mce/plugins/advlink/link.htm
+++ /dev/null
@@ -1,338 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
- <title>{#advlink_dlg.title}</title>
- <script type="text/javascript" src="../../tiny_mce_popup.js"></script>
- <script type="text/javascript" src="../../utils/mctabs.js"></script>
- <script type="text/javascript" src="../../utils/form_utils.js"></script>
- <script type="text/javascript" src="../../utils/validate.js"></script>
- <script type="text/javascript" src="js/advlink.js"></script>
- <link href="css/advlink.css" rel="stylesheet" type="text/css" />
-</head>
-<body id="advlink" style="display: none" role="application" onload="javascript:mcTabs.displayTab('general_tab','general_panel', true);" aria-labelledby="app_label">
- <span class="mceVoiceLabel" id="app_label" style="display:none;">{#advlink_dlg.title}</span>
- <form onsubmit="insertAction();return false;" action="#">
- <div class="tabs" role="presentation">
- <ul>
- <li id="general_tab" class="current" aria-controls="general_panel" ><span><a href="javascript:mcTabs.displayTab('general_tab','general_panel');" onmousedown="return false;">{#advlink_dlg.general_tab}</a></span></li>
- <li id="popup_tab" aria-controls="popup_panel" ><span><a href="javascript:mcTabs.displayTab('popup_tab','popup_panel');" onmousedown="return false;">{#advlink_dlg.popup_tab}</a></span></li>
- <li id="events_tab" aria-controls="events_panel"><span><a href="javascript:mcTabs.displayTab('events_tab','events_panel');" onmousedown="return false;">{#advlink_dlg.events_tab}</a></span></li>
- <li id="advanced_tab" aria-controls="advanced_panel"><span><a href="javascript:mcTabs.displayTab('advanced_tab','advanced_panel');" onmousedown="return false;">{#advlink_dlg.advanced_tab}</a></span></li>
- </ul>
- </div>
-
- <div class="panel_wrapper" role="presentation">
- <div id="general_panel" class="panel current">
- <fieldset>
- <legend>{#advlink_dlg.general_props}</legend>
-
- <table border="0" cellpadding="4" cellspacing="0" role="presentation">
- <tr>
- <td class="nowrap"><label id="hreflabel" for="href">{#advlink_dlg.url}</label></td>
- <td><table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td><input id="href" name="href" type="text" class="mceFocus" value="" onchange="selectByValue(this.form,'linklisthref',this.value);" aria-required="true" /></td>
- <td id="hrefbrowsercontainer">&nbsp;</td>
- </tr>
- </table></td>
- </tr>
- <tr id="linklisthrefrow">
- <td class="column1"><label for="linklisthref">{#advlink_dlg.list}</label></td>
- <td colspan="2" id="linklisthrefcontainer"><select id="linklisthref"><option value=""></option></select></td>
- </tr>
- <tr id="anchorlistrow">
- <td class="column1"><label for="anchorlist">{#advlink_dlg.anchor_names}</label></td>
- <td colspan="2" id="anchorlistcontainer"><select id="anchorlist"><option value=""></option></select></td>
- </tr>
- <tr>
- <td><label id="targetlistlabel" for="targetlist">{#advlink_dlg.target}</label></td>
- <td id="targetlistcontainer"><select id="targetlist"><option value=""></option></select></td>
- </tr>
- <tr>
- <td class="nowrap"><label id="titlelabel" for="title">{#advlink_dlg.titlefield}</label></td>
- <td><input id="title" name="title" type="text" value="" /></td>
- </tr>
- <tr>
- <td><label id="classlabel" for="classlist">{#class_name}</label></td>
- <td>
- <select id="classlist" name="classlist" onchange="changeClass();">
- <option value="" selected="selected">{#not_set}</option>
- </select>
- </td>
- </tr>
- </table>
- </fieldset>
- </div>
-
- <div id="popup_panel" class="panel">
- <fieldset>
- <legend>{#advlink_dlg.popup_props}</legend>
-
- <input type="checkbox" id="ispopup" name="ispopup" class="radio" onclick="setPopupControlsDisabled(!this.checked);buildOnClick();" />
- <label id="ispopuplabel" for="ispopup">{#advlink_dlg.popup}</label>
-
- <table border="0" cellpadding="0" cellspacing="4" role="presentation" >
- <tr>
- <td class="nowrap"><label for="popupurl">{#advlink_dlg.popup_url}</label>&nbsp;</td>
- <td>
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td><input type="text" name="popupurl" id="popupurl" value="" onchange="buildOnClick();" /></td>
- <td id="popupurlbrowsercontainer">&nbsp;</td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td class="nowrap"><label for="popupname">{#advlink_dlg.popup_name}</label>&nbsp;</td>
- <td><input type="text" name="popupname" id="popupname" value="" onchange="buildOnClick();" /></td>
- </tr>
- <tr role="group" aria-labelledby="popup_size_label">
- <td class="nowrap"><label id="popup_size_label">{#advlink_dlg.popup_size}</label>&nbsp;</td>
- <td class="nowrap">
- <span style="display:none" id="width_voiceLabel">{#advlink_dlg.width}</span>
- <input type="text" id="popupwidth" name="popupwidth" value="" onchange="buildOnClick();" aria-labelledby="width_voiceLabel" /> x
- <span style="display:none" id="height_voiceLabel">{#advlink_dlg.height}</span>
- <input type="text" id="popupheight" name="popupheight" value="" onchange="buildOnClick();" aria-labelledby="height_voiceLabel" /> px
- </td>
- </tr>
- <tr role="group" aria-labelledby="popup_position_label center_hint">
- <td class="nowrap" id="labelleft"><label id="popup_position_label">{#advlink_dlg.popup_position}</label>&nbsp;</td>
- <td class="nowrap">
- <span style="display:none" id="x_voiceLabel">X</span>
- <input type="text" id="popupleft" name="popupleft" value="" onchange="buildOnClick();" aria-labelledby="x_voiceLabel" /> /
- <span style="display:none" id="y_voiceLabel">Y</span>
- <input type="text" id="popuptop" name="popuptop" value="" onchange="buildOnClick();" aria-labelledby="y_voiceLabel" /> <span id="center_hint">(c /c = center)</span>
- </td>
- </tr>
- </table>
-
- <fieldset>
- <legend>{#advlink_dlg.popup_opts}</legend>
-
- <table border="0" cellpadding="0" cellspacing="4" role="presentation" >
- <tr>
- <td><input type="checkbox" id="popuplocation" name="popuplocation" class="checkbox" onchange="buildOnClick();" /></td>
- <td class="nowrap"><label id="popuplocationlabel" for="popuplocation">{#advlink_dlg.popup_location}</label></td>
- <td><input type="checkbox" id="popupscrollbars" name="popupscrollbars" class="checkbox" onchange="buildOnClick();" /></td>
- <td class="nowrap"><label id="popupscrollbarslabel" for="popupscrollbars">{#advlink_dlg.popup_scrollbars}</label></td>
- </tr>
- <tr>
- <td><input type="checkbox" id="popupmenubar" name="popupmenubar" class="checkbox" onchange="buildOnClick();" /></td>
- <td class="nowrap"><label id="popupmenubarlabel" for="popupmenubar">{#advlink_dlg.popup_menubar}</label></td>
- <td><input type="checkbox" id="popupresizable" name="popupresizable" class="checkbox" onchange="buildOnClick();" /></td>
- <td class="nowrap"><label id="popupresizablelabel" for="popupresizable">{#advlink_dlg.popup_resizable}</label></td>
- </tr>
- <tr>
- <td><input type="checkbox" id="popuptoolbar" name="popuptoolbar" class="checkbox" onchange="buildOnClick();" /></td>
- <td class="nowrap"><label id="popuptoolbarlabel" for="popuptoolbar">{#advlink_dlg.popup_toolbar}</label></td>
- <td><input type="checkbox" id="popupdependent" name="popupdependent" class="checkbox" onchange="buildOnClick();" /></td>
- <td class="nowrap"><label id="popupdependentlabel" for="popupdependent">{#advlink_dlg.popup_dependent}</label></td>
- </tr>
- <tr>
- <td><input type="checkbox" id="popupstatus" name="popupstatus" class="checkbox" onchange="buildOnClick();" /></td>
- <td class="nowrap"><label id="popupstatuslabel" for="popupstatus">{#advlink_dlg.popup_statusbar}</label></td>
- <td><input type="checkbox" id="popupreturn" name="popupreturn" class="checkbox" onchange="buildOnClick();" checked="checked" /></td>
- <td class="nowrap"><label id="popupreturnlabel" for="popupreturn">{#advlink_dlg.popup_return}</label></td>
- </tr>
- </table>
- </fieldset>
- </fieldset>
- </div>
-
- <div id="advanced_panel" class="panel">
- <fieldset>
- <legend>{#advlink_dlg.advanced_props}</legend>
-
- <table border="0" cellpadding="0" cellspacing="4" role="presentation" >
- <tr>
- <td class="column1"><label id="idlabel" for="id">{#advlink_dlg.id}</label></td>
- <td><input id="id" name="id" type="text" value="" /></td>
- </tr>
-
- <tr>
- <td><label id="stylelabel" for="style">{#advlink_dlg.style}</label></td>
- <td><input type="text" id="style" name="style" value="" /></td>
- </tr>
-
- <tr>
- <td><label id="classeslabel" for="classes">{#advlink_dlg.classes}</label></td>
- <td><input type="text" id="classes" name="classes" value="" onchange="selectByValue(this.form,'classlist',this.value,true);" /></td>
- </tr>
-
- <tr>
- <td><label id="targetlabel" for="target">{#advlink_dlg.target_name}</label></td>
- <td><input type="text" id="target" name="target" value="" onchange="selectByValue(this.form,'targetlist',this.value,true);" /></td>
- </tr>
-
- <tr>
- <td class="column1"><label id="dirlabel" for="dir">{#advlink_dlg.langdir}</label></td>
- <td>
- <select id="dir" name="dir">
- <option value="">{#not_set}</option>
- <option value="ltr">{#advlink_dlg.ltr}</option>
- <option value="rtl">{#advlink_dlg.rtl}</option>
- </select>
- </td>
- </tr>
-
- <tr>
- <td><label id="hreflanglabel" for="hreflang">{#advlink_dlg.target_langcode}</label></td>
- <td><input type="text" id="hreflang" name="hreflang" value="" /></td>
- </tr>
-
- <tr>
- <td class="column1"><label id="langlabel" for="lang">{#advlink_dlg.langcode}</label></td>
- <td>
- <input id="lang" name="lang" type="text" value="" />
- </td>
- </tr>
-
- <tr>
- <td><label id="charsetlabel" for="charset">{#advlink_dlg.encoding}</label></td>
- <td><input type="text" id="charset" name="charset" value="" /></td>
- </tr>
-
- <tr>
- <td><label id="typelabel" for="type">{#advlink_dlg.mime}</label></td>
- <td><input type="text" id="type" name="type" value="" /></td>
- </tr>
-
- <tr>
- <td><label id="rellabel" for="rel">{#advlink_dlg.rel}</label></td>
- <td><select id="rel" name="rel">
- <option value="">{#not_set}</option>
- <option value="lightbox">Lightbox</option>
- <option value="alternate">Alternate</option>
- <option value="designates">Designates</option>
- <option value="stylesheet">Stylesheet</option>
- <option value="start">Start</option>
- <option value="next">Next</option>
- <option value="prev">Prev</option>
- <option value="contents">Contents</option>
- <option value="index">Index</option>
- <option value="glossary">Glossary</option>
- <option value="copyright">Copyright</option>
- <option value="chapter">Chapter</option>
- <option value="subsection">Subsection</option>
- <option value="appendix">Appendix</option>
- <option value="help">Help</option>
- <option value="bookmark">Bookmark</option>
- <option value="nofollow">No Follow</option>
- <option value="tag">Tag</option>
- </select>
- </td>
- </tr>
-
- <tr>
- <td><label id="revlabel" for="rev">{#advlink_dlg.rev}</label></td>
- <td><select id="rev" name="rev">
- <option value="">{#not_set}</option>
- <option value="alternate">Alternate</option>
- <option value="designates">Designates</option>
- <option value="stylesheet">Stylesheet</option>
- <option value="start">Start</option>
- <option value="next">Next</option>
- <option value="prev">Prev</option>
- <option value="contents">Contents</option>
- <option value="index">Index</option>
- <option value="glossary">Glossary</option>
- <option value="copyright">Copyright</option>
- <option value="chapter">Chapter</option>
- <option value="subsection">Subsection</option>
- <option value="appendix">Appendix</option>
- <option value="help">Help</option>
- <option value="bookmark">Bookmark</option>
- </select>
- </td>
- </tr>
-
- <tr>
- <td><label id="tabindexlabel" for="tabindex">{#advlink_dlg.tabindex}</label></td>
- <td><input type="text" id="tabindex" name="tabindex" value="" /></td>
- </tr>
-
- <tr>
- <td><label id="accesskeylabel" for="accesskey">{#advlink_dlg.accesskey}</label></td>
- <td><input type="text" id="accesskey" name="accesskey" value="" /></td>
- </tr>
- </table>
- </fieldset>
- </div>
-
- <div id="events_panel" class="panel">
- <fieldset>
- <legend>{#advlink_dlg.event_props}</legend>
-
- <table border="0" cellpadding="0" cellspacing="4" role="presentation" >
- <tr>
- <td class="column1"><label for="onfocus">onfocus</label></td>
- <td><input id="onfocus" name="onfocus" type="text" value="" /></td>
- </tr>
-
- <tr>
- <td class="column1"><label for="onblur">onblur</label></td>
- <td><input id="onblur" name="onblur" type="text" value="" /></td>
- </tr>
-
- <tr>
- <td class="column1"><label for="onclick">onclick</label></td>
- <td><input id="onclick" name="onclick" type="text" value="" /></td>
- </tr>
-
- <tr>
- <td class="column1"><label for="ondblclick">ondblclick</label></td>
- <td><input id="ondblclick" name="ondblclick" type="text" value="" /></td>
- </tr>
-
- <tr>
- <td class="column1"><label for="onmousedown">onmousedown</label></td>
- <td><input id="onmousedown" name="onmousedown" type="text" value="" /></td>
- </tr>
-
- <tr>
- <td class="column1"><label for="onmouseup">onmouseup</label></td>
- <td><input id="onmouseup" name="onmouseup" type="text" value="" /></td>
- </tr>
-
- <tr>
- <td class="column1"><label for="onmouseover">onmouseover</label></td>
- <td><input id="onmouseover" name="onmouseover" type="text" value="" /></td>
- </tr>
-
- <tr>
- <td class="column1"><label for="onmousemove">onmousemove</label></td>
- <td><input id="onmousemove" name="onmousemove" type="text" value="" /></td>
- </tr>
-
- <tr>
- <td class="column1"><label for="onmouseout">onmouseout</label></td>
- <td><input id="onmouseout" name="onmouseout" type="text" value="" /></td>
- </tr>
-
- <tr>
- <td class="column1"><label for="onkeypress">onkeypress</label></td>
- <td><input id="onkeypress" name="onkeypress" type="text" value="" /></td>
- </tr>
-
- <tr>
- <td class="column1"><label for="onkeydown">onkeydown</label></td>
- <td><input id="onkeydown" name="onkeydown" type="text" value="" /></td>
- </tr>
-
- <tr>
- <td class="column1"><label for="onkeyup">onkeyup</label></td>
- <td><input id="onkeyup" name="onkeyup" type="text" value="" /></td>
- </tr>
- </table>
- </fieldset>
- </div>
- </div>
-
- <div class="mceActionPanel">
- <input type="submit" id="insert" name="insert" value="{#insert}" />
- <input type="button" id="cancel" name="cancel" value="{#cancel}" onclick="tinyMCEPopup.close();" />
- </div>
- </form>
-</body>
-</html>