Added TinyMCE editor functions & Updated TinyMCE to TinyMCE-jQuery 3.4b1

This commit is contained in:
Deon George
2011-01-07 17:56:20 +11:00
parent a862249fed
commit ad5b674d22
1224 changed files with 50965 additions and 50821 deletions

View File

@@ -116,7 +116,7 @@ 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')))
if (/^\s*www\./i.test(n.value) && confirm(tinyMCEPopup.getLang('advlink_dlg.is_external')))
n.value = 'http://' + n.value;
}
@@ -354,7 +354,7 @@ function setAttrib(elm, attrib, value) {
// Clean up the style
if (attrib == 'style')
value = dom.serializeStyle(dom.parseStyle(value));
value = dom.serializeStyle(dom.parseStyle(value), 'a');
dom.setAttrib(elm, attrib, value);
}
@@ -402,7 +402,8 @@ function insertAction() {
// Create new anchor elements
if (elm == null) {
tinyMCEPopup.execCommand("CreateLink", false, "#mce_temp_url#", {skip_undo : 1});
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++)
@@ -424,7 +425,7 @@ function insertAction() {
function setAllAttribs(elm) {
var formObj = document.forms[0];
var href = formObj.href.value;
var href = formObj.href.value.replace(/ /g, '%20');
var target = getSelectValue(formObj, 'targetlist');
setAttrib(elm, 'href', href);