Upgrade TinyMCE to 3.2.7. Fixes bug #10993.
This commit is contained in:
parent
dae7215922
commit
a2a2bac440
140 changed files with 8023 additions and 3591 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* $Id: editable_selects.js 520 2008-01-07 16:30:32Z spocke $
|
||||
* $Id: editable_selects.js 867 2008-06-09 20:33:40Z spocke $
|
||||
*
|
||||
* Makes select boxes editable.
|
||||
*
|
||||
|
|
@ -39,6 +39,7 @@ var TinyMCE_EditableSelects = {
|
|||
se.style.display = 'none';
|
||||
ne.focus();
|
||||
ne.onblur = TinyMCE_EditableSelects.onBlurEditableSelectInput;
|
||||
ne.onkeydown = TinyMCE_EditableSelects.onKeyDown;
|
||||
TinyMCE_EditableSelects.editSelectElm = se;
|
||||
}
|
||||
},
|
||||
|
|
@ -57,5 +58,12 @@ var TinyMCE_EditableSelects = {
|
|||
se.parentNode.removeChild(se.previousSibling);
|
||||
TinyMCE_EditableSelects.editSelectElm = null;
|
||||
}
|
||||
},
|
||||
|
||||
onKeyDown : function(e) {
|
||||
e = e || window.event;
|
||||
|
||||
if (e.keyCode == 13)
|
||||
TinyMCE_EditableSelects.onBlurEditableSelectInput();
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* $Id: form_utils.js 673 2008-03-06 13:26:20Z spocke $
|
||||
* $Id: form_utils.js 1184 2009-08-11 11:47:27Z spocke $
|
||||
*
|
||||
* Various form utilitiy functions.
|
||||
*
|
||||
|
|
@ -13,7 +13,7 @@ function getColorPickerHTML(id, target_form_element) {
|
|||
var h = "";
|
||||
|
||||
h += '<a id="' + id + '_link" href="javascript:;" onclick="tinyMCEPopup.pickColor(event,\'' + target_form_element +'\');" onmousedown="return false;" class="pickcolor">';
|
||||
h += '<span id="' + id + '" title="' + tinyMCEPopup.getLang('browse') + '"></span></a>';
|
||||
h += '<span id="' + id + '" title="' + tinyMCEPopup.getLang('browse') + '"> </span></a>';
|
||||
|
||||
return h;
|
||||
}
|
||||
|
|
@ -50,7 +50,7 @@ function getBrowserHTML(id, target_form_element, type, prefix) {
|
|||
|
||||
html = "";
|
||||
html += '<a id="' + id + '_link" href="javascript:openBrowser(\'' + id + '\',\'' + target_form_element + '\', \'' + type + '\',\'' + option + '\');" onmousedown="return false;" class="browse">';
|
||||
html += '<span id="' + id + '" title="' + tinyMCEPopup.getLang('browse') + '"></span></a>';
|
||||
html += '<span id="' + id + '" title="' + tinyMCEPopup.getLang('browse') + '"> </span></a>';
|
||||
|
||||
return html;
|
||||
}
|
||||
|
|
@ -92,7 +92,7 @@ function selectByValue(form_obj, field_name, value, add_custom, ignore_case) {
|
|||
function getSelectValue(form_obj, field_name) {
|
||||
var elm = form_obj.elements[field_name];
|
||||
|
||||
if (elm == null || elm.options == null)
|
||||
if (elm == null || elm.options == null || elm.selectedIndex === -1)
|
||||
return "";
|
||||
|
||||
return elm.options[elm.selectedIndex].value;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* $Id: mctabs.js 520 2008-01-07 16:30:32Z spocke $
|
||||
* $Id: mctabs.js 758 2008-03-30 13:53:29Z spocke $
|
||||
*
|
||||
* Moxiecode DHTML Tabs script.
|
||||
*
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
*/
|
||||
|
||||
function MCTabs() {
|
||||
this.settings = new Array();
|
||||
this.settings = [];
|
||||
};
|
||||
|
||||
MCTabs.prototype.init = function(settings) {
|
||||
|
|
@ -28,17 +28,19 @@ MCTabs.prototype.getParam = function(name, default_value) {
|
|||
};
|
||||
|
||||
MCTabs.prototype.displayTab = function(tab_id, panel_id) {
|
||||
var panelElm = document.getElementById(panel_id);
|
||||
var panelContainerElm = panelElm ? panelElm.parentNode : null;
|
||||
var tabElm = document.getElementById(tab_id);
|
||||
var tabContainerElm = tabElm ? tabElm.parentNode : null;
|
||||
var selectionClass = this.getParam('selection_class', 'current');
|
||||
var panelElm, panelContainerElm, tabElm, tabContainerElm, selectionClass, nodes, i;
|
||||
|
||||
panelElm= document.getElementById(panel_id);
|
||||
panelContainerElm = panelElm ? panelElm.parentNode : null;
|
||||
tabElm = document.getElementById(tab_id);
|
||||
tabContainerElm = tabElm ? tabElm.parentNode : null;
|
||||
selectionClass = this.getParam('selection_class', 'current');
|
||||
|
||||
if (tabElm && tabContainerElm) {
|
||||
var nodes = tabContainerElm.childNodes;
|
||||
nodes = tabContainerElm.childNodes;
|
||||
|
||||
// Hide all other tabs
|
||||
for (var i=0; i<nodes.length; i++) {
|
||||
for (i = 0; i < nodes.length; i++) {
|
||||
if (nodes[i].nodeName == "LI")
|
||||
nodes[i].className = '';
|
||||
}
|
||||
|
|
@ -48,10 +50,10 @@ MCTabs.prototype.displayTab = function(tab_id, panel_id) {
|
|||
}
|
||||
|
||||
if (panelElm && panelContainerElm) {
|
||||
var nodes = panelContainerElm.childNodes;
|
||||
nodes = panelContainerElm.childNodes;
|
||||
|
||||
// Hide all other panels
|
||||
for (var i=0; i<nodes.length; i++) {
|
||||
for (i = 0; i < nodes.length; i++) {
|
||||
if (nodes[i].nodeName == "DIV")
|
||||
nodes[i].className = 'panel';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* $Id: validate.js 673 2008-03-06 13:26:20Z spocke $
|
||||
* $Id: validate.js 758 2008-03-30 13:53:29Z spocke $
|
||||
*
|
||||
* Various form validation methods.
|
||||
*
|
||||
|
|
@ -110,7 +110,7 @@ var AutoValidator = {
|
|||
},
|
||||
|
||||
reset : function(e) {
|
||||
var t = new Array('label', 'input', 'select', 'textarea');
|
||||
var t = ['label', 'input', 'select', 'textarea'];
|
||||
var i, j, nl, s = this.settings;
|
||||
|
||||
if (e == null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue