Browse code

Re-add TinyMCE 2.0.1 to the site settings list - TinyMCE directoy names changed - installer submission settings layout dirty fix

Clarissa Walker authored on 2026/07/27 11:20:38
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,70 +0,0 @@
1
-/**
2
- * editable_selects.js
3
- *
4
- * Copyright 2009, Moxiecode Systems AB
5
- * Released under LGPL License.
6
- *
7
- * License: http://tinymce.moxiecode.com/license
8
- * Contributing: http://tinymce.moxiecode.com/contributing
9
- */
10
-
11
-var TinyMCE_EditableSelects = {
12
-	editSelectElm : null,
13
-
14
-	init : function() {
15
-		var nl = document.getElementsByTagName("select"), i, d = document, o;
16
-
17
-		for (i=0; i<nl.length; i++) {
18
-			if (nl[i].className.indexOf('mceEditableSelect') != -1) {
19
-				o = new Option(tinyMCEPopup.editor.translate('value'), '__mce_add_custom__');
20
-
21
-				o.className = 'mceAddSelectValue';
22
-
23
-				nl[i].options[nl[i].options.length] = o;
24
-				nl[i].onchange = TinyMCE_EditableSelects.onChangeEditableSelect;
25
-			}
26
-		}
27
-	},
28
-
29
-	onChangeEditableSelect : function(e) {
30
-		var d = document, ne, se = window.event ? window.event.srcElement : e.target;
31
-
32
-		if (se.options[se.selectedIndex].value == '__mce_add_custom__') {
33
-			ne = d.createElement("input");
34
-			ne.id = se.id + "_custom";
35
-			ne.name = se.name + "_custom";
36
-			ne.type = "text";
37
-
38
-			ne.style.width = se.offsetWidth + 'px';
39
-			se.parentNode.insertBefore(ne, se);
40
-			se.style.display = 'none';
41
-			ne.focus();
42
-			ne.onblur = TinyMCE_EditableSelects.onBlurEditableSelectInput;
43
-			ne.onkeydown = TinyMCE_EditableSelects.onKeyDown;
44
-			TinyMCE_EditableSelects.editSelectElm = se;
45
-		}
46
-	},
47
-
48
-	onBlurEditableSelectInput : function() {
49
-		var se = TinyMCE_EditableSelects.editSelectElm;
50
-
51
-		if (se) {
52
-			if (se.previousSibling.value != '') {
53
-				addSelectValue(document.forms[0], se.id, se.previousSibling.value, se.previousSibling.value);
54
-				selectByValue(document.forms[0], se.id, se.previousSibling.value);
55
-			} else
56
-				selectByValue(document.forms[0], se.id, '');
57
-
58
-			se.style.display = 'inline';
59
-			se.parentNode.removeChild(se.previousSibling);
60
-			TinyMCE_EditableSelects.editSelectElm = null;
61
-		}
62
-	},
63
-
64
-	onKeyDown : function(e) {
65
-		e = e || window.event;
66
-
67
-		if (e.keyCode == 13)
68
-			TinyMCE_EditableSelects.onBlurEditableSelectInput();
69
-	}
70
-};
Browse code

Actually use TinyMCE 3.4.8 for TinyMCE3 option instead of original 2.0.1; that version is moved to 'tinymce2' directory

Clarissa Walker authored on 2026/07/27 09:02:31
Showing 1 changed files
... ...
@@ -1,61 +1,70 @@
1
-/**
2
- * $Id: editable_selects.js 520 2008-01-07 16:30:32Z spocke $
3
- *
4
- * Makes select boxes editable.
5
- *
6
- * @author Moxiecode
7
- * @copyright Copyright � 2004-2008, Moxiecode Systems AB, All rights reserved.
8
- */
9
-
10
-var TinyMCE_EditableSelects = {
11
-	editSelectElm : null,
12
-
13
-	init : function() {
14
-		var nl = document.getElementsByTagName("select"), i, d = document, o;
15
-
16
-		for (i=0; i<nl.length; i++) {
17
-			if (nl[i].className.indexOf('mceEditableSelect') != -1) {
18
-				o = new Option('(value)', '__mce_add_custom__');
19
-
20
-				o.className = 'mceAddSelectValue';
21
-
22
-				nl[i].options[nl[i].options.length] = o;
23
-				nl[i].onchange = TinyMCE_EditableSelects.onChangeEditableSelect;
24
-			}
25
-		}
26
-	},
27
-
28
-	onChangeEditableSelect : function(e) {
29
-		var d = document, ne, se = window.event ? window.event.srcElement : e.target;
30
-
31
-		if (se.options[se.selectedIndex].value == '__mce_add_custom__') {
32
-			ne = d.createElement("input");
33
-			ne.id = se.id + "_custom";
34
-			ne.name = se.name + "_custom";
35
-			ne.type = "text";
36
-
37
-			ne.style.width = se.offsetWidth + 'px';
38
-			se.parentNode.insertBefore(ne, se);
39
-			se.style.display = 'none';
40
-			ne.focus();
41
-			ne.onblur = TinyMCE_EditableSelects.onBlurEditableSelectInput;
42
-			TinyMCE_EditableSelects.editSelectElm = se;
43
-		}
44
-	},
45
-
46
-	onBlurEditableSelectInput : function() {
47
-		var se = TinyMCE_EditableSelects.editSelectElm;
48
-
49
-		if (se) {
50
-			if (se.previousSibling.value != '') {
51
-				addSelectValue(document.forms[0], se.id, se.previousSibling.value, se.previousSibling.value);
52
-				selectByValue(document.forms[0], se.id, se.previousSibling.value);
53
-			} else
54
-				selectByValue(document.forms[0], se.id, '');
55
-
56
-			se.style.display = 'inline';
57
-			se.parentNode.removeChild(se.previousSibling);
58
-			TinyMCE_EditableSelects.editSelectElm = null;
59
-		}
60
-	}
61
-};
1
+/**
2
+ * editable_selects.js
3
+ *
4
+ * Copyright 2009, Moxiecode Systems AB
5
+ * Released under LGPL License.
6
+ *
7
+ * License: http://tinymce.moxiecode.com/license
8
+ * Contributing: http://tinymce.moxiecode.com/contributing
9
+ */
10
+
11
+var TinyMCE_EditableSelects = {
12
+	editSelectElm : null,
13
+
14
+	init : function() {
15
+		var nl = document.getElementsByTagName("select"), i, d = document, o;
16
+
17
+		for (i=0; i<nl.length; i++) {
18
+			if (nl[i].className.indexOf('mceEditableSelect') != -1) {
19
+				o = new Option(tinyMCEPopup.editor.translate('value'), '__mce_add_custom__');
20
+
21
+				o.className = 'mceAddSelectValue';
22
+
23
+				nl[i].options[nl[i].options.length] = o;
24
+				nl[i].onchange = TinyMCE_EditableSelects.onChangeEditableSelect;
25
+			}
26
+		}
27
+	},
28
+
29
+	onChangeEditableSelect : function(e) {
30
+		var d = document, ne, se = window.event ? window.event.srcElement : e.target;
31
+
32
+		if (se.options[se.selectedIndex].value == '__mce_add_custom__') {
33
+			ne = d.createElement("input");
34
+			ne.id = se.id + "_custom";
35
+			ne.name = se.name + "_custom";
36
+			ne.type = "text";
37
+
38
+			ne.style.width = se.offsetWidth + 'px';
39
+			se.parentNode.insertBefore(ne, se);
40
+			se.style.display = 'none';
41
+			ne.focus();
42
+			ne.onblur = TinyMCE_EditableSelects.onBlurEditableSelectInput;
43
+			ne.onkeydown = TinyMCE_EditableSelects.onKeyDown;
44
+			TinyMCE_EditableSelects.editSelectElm = se;
45
+		}
46
+	},
47
+
48
+	onBlurEditableSelectInput : function() {
49
+		var se = TinyMCE_EditableSelects.editSelectElm;
50
+
51
+		if (se) {
52
+			if (se.previousSibling.value != '') {
53
+				addSelectValue(document.forms[0], se.id, se.previousSibling.value, se.previousSibling.value);
54
+				selectByValue(document.forms[0], se.id, se.previousSibling.value);
55
+			} else
56
+				selectByValue(document.forms[0], se.id, '');
57
+
58
+			se.style.display = 'inline';
59
+			se.parentNode.removeChild(se.previousSibling);
60
+			TinyMCE_EditableSelects.editSelectElm = null;
61
+		}
62
+	},
63
+
64
+	onKeyDown : function(e) {
65
+		e = e || window.event;
66
+
67
+		if (e.keyCode == 13)
68
+			TinyMCE_EditableSelects.onBlurEditableSelectInput();
69
+	}
70
+};
Browse code

3.5.6 efiction version

Jimako authored on 2024/03/09 16:09:42
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,61 @@
1
+/**
2
+ * $Id: editable_selects.js 520 2008-01-07 16:30:32Z spocke $
3
+ *
4
+ * Makes select boxes editable.
5
+ *
6
+ * @author Moxiecode
7
+ * @copyright Copyright � 2004-2008, Moxiecode Systems AB, All rights reserved.
8
+ */
9
+
10
+var TinyMCE_EditableSelects = {
11
+	editSelectElm : null,
12
+
13
+	init : function() {
14
+		var nl = document.getElementsByTagName("select"), i, d = document, o;
15
+
16
+		for (i=0; i<nl.length; i++) {
17
+			if (nl[i].className.indexOf('mceEditableSelect') != -1) {
18
+				o = new Option('(value)', '__mce_add_custom__');
19
+
20
+				o.className = 'mceAddSelectValue';
21
+
22
+				nl[i].options[nl[i].options.length] = o;
23
+				nl[i].onchange = TinyMCE_EditableSelects.onChangeEditableSelect;
24
+			}
25
+		}
26
+	},
27
+
28
+	onChangeEditableSelect : function(e) {
29
+		var d = document, ne, se = window.event ? window.event.srcElement : e.target;
30
+
31
+		if (se.options[se.selectedIndex].value == '__mce_add_custom__') {
32
+			ne = d.createElement("input");
33
+			ne.id = se.id + "_custom";
34
+			ne.name = se.name + "_custom";
35
+			ne.type = "text";
36
+
37
+			ne.style.width = se.offsetWidth + 'px';
38
+			se.parentNode.insertBefore(ne, se);
39
+			se.style.display = 'none';
40
+			ne.focus();
41
+			ne.onblur = TinyMCE_EditableSelects.onBlurEditableSelectInput;
42
+			TinyMCE_EditableSelects.editSelectElm = se;
43
+		}
44
+	},
45
+
46
+	onBlurEditableSelectInput : function() {
47
+		var se = TinyMCE_EditableSelects.editSelectElm;
48
+
49
+		if (se) {
50
+			if (se.previousSibling.value != '') {
51
+				addSelectValue(document.forms[0], se.id, se.previousSibling.value, se.previousSibling.value);
52
+				selectByValue(document.forms[0], se.id, se.previousSibling.value);
53
+			} else
54
+				selectByValue(document.forms[0], se.id, '');
55
+
56
+			se.style.display = 'inline';
57
+			se.parentNode.removeChild(se.previousSibling);
58
+			TinyMCE_EditableSelects.editSelectElm = null;
59
+		}
60
+	}
61
+};