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,111 +0,0 @@
1
-/**
2
- * attributes.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
-function init() {
12
-	tinyMCEPopup.resizeToInnerSize();
13
-	var inst = tinyMCEPopup.editor;
14
-	var dom = inst.dom;
15
-	var elm = inst.selection.getNode();
16
-	var f = document.forms[0];
17
-	var onclick = dom.getAttrib(elm, 'onclick');
18
-
19
-	setFormValue('title', dom.getAttrib(elm, 'title'));
20
-	setFormValue('id', dom.getAttrib(elm, 'id'));
21
-	setFormValue('style', dom.getAttrib(elm, "style"));
22
-	setFormValue('dir', dom.getAttrib(elm, 'dir'));
23
-	setFormValue('lang', dom.getAttrib(elm, 'lang'));
24
-	setFormValue('tabindex', dom.getAttrib(elm, 'tabindex', typeof(elm.tabindex) != "undefined" ? elm.tabindex : ""));
25
-	setFormValue('accesskey', dom.getAttrib(elm, 'accesskey', typeof(elm.accesskey) != "undefined" ? elm.accesskey : ""));
26
-	setFormValue('onfocus', dom.getAttrib(elm, 'onfocus'));
27
-	setFormValue('onblur', dom.getAttrib(elm, 'onblur'));
28
-	setFormValue('onclick', onclick);
29
-	setFormValue('ondblclick', dom.getAttrib(elm, 'ondblclick'));
30
-	setFormValue('onmousedown', dom.getAttrib(elm, 'onmousedown'));
31
-	setFormValue('onmouseup', dom.getAttrib(elm, 'onmouseup'));
32
-	setFormValue('onmouseover', dom.getAttrib(elm, 'onmouseover'));
33
-	setFormValue('onmousemove', dom.getAttrib(elm, 'onmousemove'));
34
-	setFormValue('onmouseout', dom.getAttrib(elm, 'onmouseout'));
35
-	setFormValue('onkeypress', dom.getAttrib(elm, 'onkeypress'));
36
-	setFormValue('onkeydown', dom.getAttrib(elm, 'onkeydown'));
37
-	setFormValue('onkeyup', dom.getAttrib(elm, 'onkeyup'));
38
-	className = dom.getAttrib(elm, 'class');
39
-
40
-	addClassesToList('classlist', 'advlink_styles');
41
-	selectByValue(f, 'classlist', className, true);
42
-
43
-	TinyMCE_EditableSelects.init();
44
-}
45
-
46
-function setFormValue(name, value) {
47
-	if(value && document.forms[0].elements[name]){
48
-		document.forms[0].elements[name].value = value;
49
-	}
50
-}
51
-
52
-function insertAction() {
53
-	var inst = tinyMCEPopup.editor;
54
-	var elm = inst.selection.getNode();
55
-
56
-	setAllAttribs(elm);
57
-	tinyMCEPopup.execCommand("mceEndUndoLevel");
58
-	tinyMCEPopup.close();
59
-}
60
-
61
-function setAttrib(elm, attrib, value) {
62
-	var formObj = document.forms[0];
63
-	var valueElm = formObj.elements[attrib.toLowerCase()];
64
-	var inst = tinyMCEPopup.editor;
65
-	var dom = inst.dom;
66
-
67
-	if (typeof(value) == "undefined" || value == null) {
68
-		value = "";
69
-
70
-		if (valueElm)
71
-			value = valueElm.value;
72
-	}
73
-
74
-	dom.setAttrib(elm, attrib.toLowerCase(), value);
75
-}
76
-
77
-function setAllAttribs(elm) {
78
-	var f = document.forms[0];
79
-
80
-	setAttrib(elm, 'title');
81
-	setAttrib(elm, 'id');
82
-	setAttrib(elm, 'style');
83
-	setAttrib(elm, 'class', getSelectValue(f, 'classlist'));
84
-	setAttrib(elm, 'dir');
85
-	setAttrib(elm, 'lang');
86
-	setAttrib(elm, 'tabindex');
87
-	setAttrib(elm, 'accesskey');
88
-	setAttrib(elm, 'onfocus');
89
-	setAttrib(elm, 'onblur');
90
-	setAttrib(elm, 'onclick');
91
-	setAttrib(elm, 'ondblclick');
92
-	setAttrib(elm, 'onmousedown');
93
-	setAttrib(elm, 'onmouseup');
94
-	setAttrib(elm, 'onmouseover');
95
-	setAttrib(elm, 'onmousemove');
96
-	setAttrib(elm, 'onmouseout');
97
-	setAttrib(elm, 'onkeypress');
98
-	setAttrib(elm, 'onkeydown');
99
-	setAttrib(elm, 'onkeyup');
100
-
101
-	// Refresh in old MSIE
102
-//	if (tinyMCE.isMSIE5)
103
-//		elm.outerHTML = elm.outerHTML;
104
-}
105
-
106
-function insertAttribute() {
107
-	tinyMCEPopup.close();
108
-}
109
-
110
-tinyMCEPopup.onInit.add(init);
111
-tinyMCEPopup.requireLangPack();
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,123 +1,111 @@
1
- /**
2
- * $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $
3
- *
4
- * @author Moxiecode - based on work by Andrew Tetlaw
5
- * @copyright Copyright � 2004-2006, Moxiecode Systems AB, All rights reserved.
6
- */
7
-
8
-function init() {
9
-	tinyMCEPopup.resizeToInnerSize();
10
-	var inst = tinyMCEPopup.editor;
11
-	var dom = inst.dom;
12
-	var elm = inst.selection.getNode();
13
-	var f = document.forms[0];
14
-	var onclick = dom.getAttrib(elm, 'onclick');
15
-
16
-	setFormValue('title', dom.getAttrib(elm, 'title'));
17
-	setFormValue('id', dom.getAttrib(elm, 'id'));
18
-	setFormValue('style', dom.getAttrib(elm, "style"));
19
-	setFormValue('dir', dom.getAttrib(elm, 'dir'));
20
-	setFormValue('lang', dom.getAttrib(elm, 'lang'));
21
-	setFormValue('tabindex', dom.getAttrib(elm, 'tabindex', typeof(elm.tabindex) != "undefined" ? elm.tabindex : ""));
22
-	setFormValue('accesskey', dom.getAttrib(elm, 'accesskey', typeof(elm.accesskey) != "undefined" ? elm.accesskey : ""));
23
-	setFormValue('onfocus', dom.getAttrib(elm, 'onfocus'));
24
-	setFormValue('onblur', dom.getAttrib(elm, 'onblur'));
25
-	setFormValue('onclick', onclick);
26
-	setFormValue('ondblclick', dom.getAttrib(elm, 'ondblclick'));
27
-	setFormValue('onmousedown', dom.getAttrib(elm, 'onmousedown'));
28
-	setFormValue('onmouseup', dom.getAttrib(elm, 'onmouseup'));
29
-	setFormValue('onmouseover', dom.getAttrib(elm, 'onmouseover'));
30
-	setFormValue('onmousemove', dom.getAttrib(elm, 'onmousemove'));
31
-	setFormValue('onmouseout', dom.getAttrib(elm, 'onmouseout'));
32
-	setFormValue('onkeypress', dom.getAttrib(elm, 'onkeypress'));
33
-	setFormValue('onkeydown', dom.getAttrib(elm, 'onkeydown'));
34
-	setFormValue('onkeyup', dom.getAttrib(elm, 'onkeyup'));
35
-	className = dom.getAttrib(elm, 'class');
36
-
37
-	addClassesToList('classlist', 'advlink_styles');
38
-	selectByValue(f, 'classlist', className, true);
39
-
40
-	TinyMCE_EditableSelects.init();
41
-}
42
-
43
-function setFormValue(name, value) {
44
-	if(value && document.forms[0].elements[name]){
45
-		document.forms[0].elements[name].value = value;
46
-	}
47
-}
48
-
49
-function insertAction() {
50
-	var inst = tinyMCEPopup.editor;
51
-	var elm = inst.selection.getNode();
52
-
53
-	tinyMCEPopup.execCommand("mceBeginUndoLevel");	
54
-	setAllAttribs(elm);
55
-	tinyMCEPopup.execCommand("mceEndUndoLevel");
56
-	tinyMCEPopup.close();
57
-}
58
-
59
-function setAttrib(elm, attrib, value) {
60
-	var formObj = document.forms[0];
61
-	var valueElm = formObj.elements[attrib.toLowerCase()];
62
-	var inst = tinyMCEPopup.editor;
63
-	var dom = inst.dom;
64
-
65
-	if (typeof(value) == "undefined" || value == null) {
66
-		value = "";
67
-
68
-		if (valueElm)
69
-			value = valueElm.value;
70
-	}
71
-
72
-	if (value != "") {
73
-		dom.setAttrib(elm, attrib.toLowerCase(), value);
74
-
75
-		if (attrib == "style")
76
-			attrib = "style.cssText";
77
-
78
-		if (attrib.substring(0, 2) == 'on')
79
-			value = 'return true;' + value;
80
-
81
-		if (attrib == "class")
82
-			attrib = "className";
83
-
84
-		elm[attrib]=value;
85
-	} else
86
-		elm.removeAttribute(attrib);
87
-}
88
-
89
-function setAllAttribs(elm) {
90
-	var f = document.forms[0];
91
-
92
-	setAttrib(elm, 'title');
93
-	setAttrib(elm, 'id');
94
-	setAttrib(elm, 'style');
95
-	setAttrib(elm, 'class', getSelectValue(f, 'classlist'));
96
-	setAttrib(elm, 'dir');
97
-	setAttrib(elm, 'lang');
98
-	setAttrib(elm, 'tabindex');
99
-	setAttrib(elm, 'accesskey');
100
-	setAttrib(elm, 'onfocus');
101
-	setAttrib(elm, 'onblur');
102
-	setAttrib(elm, 'onclick');
103
-	setAttrib(elm, 'ondblclick');
104
-	setAttrib(elm, 'onmousedown');
105
-	setAttrib(elm, 'onmouseup');
106
-	setAttrib(elm, 'onmouseover');
107
-	setAttrib(elm, 'onmousemove');
108
-	setAttrib(elm, 'onmouseout');
109
-	setAttrib(elm, 'onkeypress');
110
-	setAttrib(elm, 'onkeydown');
111
-	setAttrib(elm, 'onkeyup');
112
-
113
-	// Refresh in old MSIE
114
-//	if (tinyMCE.isMSIE5)
115
-//		elm.outerHTML = elm.outerHTML;
116
-}
117
-
118
-function insertAttribute() {
119
-	tinyMCEPopup.close();
120
-}
121
-
122
-tinyMCEPopup.onInit.add(init);
123
-tinyMCEPopup.requireLangPack();
1
+/**
2
+ * attributes.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
+function init() {
12
+	tinyMCEPopup.resizeToInnerSize();
13
+	var inst = tinyMCEPopup.editor;
14
+	var dom = inst.dom;
15
+	var elm = inst.selection.getNode();
16
+	var f = document.forms[0];
17
+	var onclick = dom.getAttrib(elm, 'onclick');
18
+
19
+	setFormValue('title', dom.getAttrib(elm, 'title'));
20
+	setFormValue('id', dom.getAttrib(elm, 'id'));
21
+	setFormValue('style', dom.getAttrib(elm, "style"));
22
+	setFormValue('dir', dom.getAttrib(elm, 'dir'));
23
+	setFormValue('lang', dom.getAttrib(elm, 'lang'));
24
+	setFormValue('tabindex', dom.getAttrib(elm, 'tabindex', typeof(elm.tabindex) != "undefined" ? elm.tabindex : ""));
25
+	setFormValue('accesskey', dom.getAttrib(elm, 'accesskey', typeof(elm.accesskey) != "undefined" ? elm.accesskey : ""));
26
+	setFormValue('onfocus', dom.getAttrib(elm, 'onfocus'));
27
+	setFormValue('onblur', dom.getAttrib(elm, 'onblur'));
28
+	setFormValue('onclick', onclick);
29
+	setFormValue('ondblclick', dom.getAttrib(elm, 'ondblclick'));
30
+	setFormValue('onmousedown', dom.getAttrib(elm, 'onmousedown'));
31
+	setFormValue('onmouseup', dom.getAttrib(elm, 'onmouseup'));
32
+	setFormValue('onmouseover', dom.getAttrib(elm, 'onmouseover'));
33
+	setFormValue('onmousemove', dom.getAttrib(elm, 'onmousemove'));
34
+	setFormValue('onmouseout', dom.getAttrib(elm, 'onmouseout'));
35
+	setFormValue('onkeypress', dom.getAttrib(elm, 'onkeypress'));
36
+	setFormValue('onkeydown', dom.getAttrib(elm, 'onkeydown'));
37
+	setFormValue('onkeyup', dom.getAttrib(elm, 'onkeyup'));
38
+	className = dom.getAttrib(elm, 'class');
39
+
40
+	addClassesToList('classlist', 'advlink_styles');
41
+	selectByValue(f, 'classlist', className, true);
42
+
43
+	TinyMCE_EditableSelects.init();
44
+}
45
+
46
+function setFormValue(name, value) {
47
+	if(value && document.forms[0].elements[name]){
48
+		document.forms[0].elements[name].value = value;
49
+	}
50
+}
51
+
52
+function insertAction() {
53
+	var inst = tinyMCEPopup.editor;
54
+	var elm = inst.selection.getNode();
55
+
56
+	setAllAttribs(elm);
57
+	tinyMCEPopup.execCommand("mceEndUndoLevel");
58
+	tinyMCEPopup.close();
59
+}
60
+
61
+function setAttrib(elm, attrib, value) {
62
+	var formObj = document.forms[0];
63
+	var valueElm = formObj.elements[attrib.toLowerCase()];
64
+	var inst = tinyMCEPopup.editor;
65
+	var dom = inst.dom;
66
+
67
+	if (typeof(value) == "undefined" || value == null) {
68
+		value = "";
69
+
70
+		if (valueElm)
71
+			value = valueElm.value;
72
+	}
73
+
74
+	dom.setAttrib(elm, attrib.toLowerCase(), value);
75
+}
76
+
77
+function setAllAttribs(elm) {
78
+	var f = document.forms[0];
79
+
80
+	setAttrib(elm, 'title');
81
+	setAttrib(elm, 'id');
82
+	setAttrib(elm, 'style');
83
+	setAttrib(elm, 'class', getSelectValue(f, 'classlist'));
84
+	setAttrib(elm, 'dir');
85
+	setAttrib(elm, 'lang');
86
+	setAttrib(elm, 'tabindex');
87
+	setAttrib(elm, 'accesskey');
88
+	setAttrib(elm, 'onfocus');
89
+	setAttrib(elm, 'onblur');
90
+	setAttrib(elm, 'onclick');
91
+	setAttrib(elm, 'ondblclick');
92
+	setAttrib(elm, 'onmousedown');
93
+	setAttrib(elm, 'onmouseup');
94
+	setAttrib(elm, 'onmouseover');
95
+	setAttrib(elm, 'onmousemove');
96
+	setAttrib(elm, 'onmouseout');
97
+	setAttrib(elm, 'onkeypress');
98
+	setAttrib(elm, 'onkeydown');
99
+	setAttrib(elm, 'onkeyup');
100
+
101
+	// Refresh in old MSIE
102
+//	if (tinyMCE.isMSIE5)
103
+//		elm.outerHTML = elm.outerHTML;
104
+}
105
+
106
+function insertAttribute() {
107
+	tinyMCEPopup.close();
108
+}
109
+
110
+tinyMCEPopup.onInit.add(init);
111
+tinyMCEPopup.requireLangPack();
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,123 @@
1
+ /**
2
+ * $Id: editor_plugin_src.js 42 2006-08-08 14:32:24Z spocke $
3
+ *
4
+ * @author Moxiecode - based on work by Andrew Tetlaw
5
+ * @copyright Copyright � 2004-2006, Moxiecode Systems AB, All rights reserved.
6
+ */
7
+
8
+function init() {
9
+	tinyMCEPopup.resizeToInnerSize();
10
+	var inst = tinyMCEPopup.editor;
11
+	var dom = inst.dom;
12
+	var elm = inst.selection.getNode();
13
+	var f = document.forms[0];
14
+	var onclick = dom.getAttrib(elm, 'onclick');
15
+
16
+	setFormValue('title', dom.getAttrib(elm, 'title'));
17
+	setFormValue('id', dom.getAttrib(elm, 'id'));
18
+	setFormValue('style', dom.getAttrib(elm, "style"));
19
+	setFormValue('dir', dom.getAttrib(elm, 'dir'));
20
+	setFormValue('lang', dom.getAttrib(elm, 'lang'));
21
+	setFormValue('tabindex', dom.getAttrib(elm, 'tabindex', typeof(elm.tabindex) != "undefined" ? elm.tabindex : ""));
22
+	setFormValue('accesskey', dom.getAttrib(elm, 'accesskey', typeof(elm.accesskey) != "undefined" ? elm.accesskey : ""));
23
+	setFormValue('onfocus', dom.getAttrib(elm, 'onfocus'));
24
+	setFormValue('onblur', dom.getAttrib(elm, 'onblur'));
25
+	setFormValue('onclick', onclick);
26
+	setFormValue('ondblclick', dom.getAttrib(elm, 'ondblclick'));
27
+	setFormValue('onmousedown', dom.getAttrib(elm, 'onmousedown'));
28
+	setFormValue('onmouseup', dom.getAttrib(elm, 'onmouseup'));
29
+	setFormValue('onmouseover', dom.getAttrib(elm, 'onmouseover'));
30
+	setFormValue('onmousemove', dom.getAttrib(elm, 'onmousemove'));
31
+	setFormValue('onmouseout', dom.getAttrib(elm, 'onmouseout'));
32
+	setFormValue('onkeypress', dom.getAttrib(elm, 'onkeypress'));
33
+	setFormValue('onkeydown', dom.getAttrib(elm, 'onkeydown'));
34
+	setFormValue('onkeyup', dom.getAttrib(elm, 'onkeyup'));
35
+	className = dom.getAttrib(elm, 'class');
36
+
37
+	addClassesToList('classlist', 'advlink_styles');
38
+	selectByValue(f, 'classlist', className, true);
39
+
40
+	TinyMCE_EditableSelects.init();
41
+}
42
+
43
+function setFormValue(name, value) {
44
+	if(value && document.forms[0].elements[name]){
45
+		document.forms[0].elements[name].value = value;
46
+	}
47
+}
48
+
49
+function insertAction() {
50
+	var inst = tinyMCEPopup.editor;
51
+	var elm = inst.selection.getNode();
52
+
53
+	tinyMCEPopup.execCommand("mceBeginUndoLevel");	
54
+	setAllAttribs(elm);
55
+	tinyMCEPopup.execCommand("mceEndUndoLevel");
56
+	tinyMCEPopup.close();
57
+}
58
+
59
+function setAttrib(elm, attrib, value) {
60
+	var formObj = document.forms[0];
61
+	var valueElm = formObj.elements[attrib.toLowerCase()];
62
+	var inst = tinyMCEPopup.editor;
63
+	var dom = inst.dom;
64
+
65
+	if (typeof(value) == "undefined" || value == null) {
66
+		value = "";
67
+
68
+		if (valueElm)
69
+			value = valueElm.value;
70
+	}
71
+
72
+	if (value != "") {
73
+		dom.setAttrib(elm, attrib.toLowerCase(), value);
74
+
75
+		if (attrib == "style")
76
+			attrib = "style.cssText";
77
+
78
+		if (attrib.substring(0, 2) == 'on')
79
+			value = 'return true;' + value;
80
+
81
+		if (attrib == "class")
82
+			attrib = "className";
83
+
84
+		elm[attrib]=value;
85
+	} else
86
+		elm.removeAttribute(attrib);
87
+}
88
+
89
+function setAllAttribs(elm) {
90
+	var f = document.forms[0];
91
+
92
+	setAttrib(elm, 'title');
93
+	setAttrib(elm, 'id');
94
+	setAttrib(elm, 'style');
95
+	setAttrib(elm, 'class', getSelectValue(f, 'classlist'));
96
+	setAttrib(elm, 'dir');
97
+	setAttrib(elm, 'lang');
98
+	setAttrib(elm, 'tabindex');
99
+	setAttrib(elm, 'accesskey');
100
+	setAttrib(elm, 'onfocus');
101
+	setAttrib(elm, 'onblur');
102
+	setAttrib(elm, 'onclick');
103
+	setAttrib(elm, 'ondblclick');
104
+	setAttrib(elm, 'onmousedown');
105
+	setAttrib(elm, 'onmouseup');
106
+	setAttrib(elm, 'onmouseover');
107
+	setAttrib(elm, 'onmousemove');
108
+	setAttrib(elm, 'onmouseout');
109
+	setAttrib(elm, 'onkeypress');
110
+	setAttrib(elm, 'onkeydown');
111
+	setAttrib(elm, 'onkeyup');
112
+
113
+	// Refresh in old MSIE
114
+//	if (tinyMCE.isMSIE5)
115
+//		elm.outerHTML = elm.outerHTML;
116
+}
117
+
118
+function insertAttribute() {
119
+	tinyMCEPopup.close();
120
+}
121
+
122
+tinyMCEPopup.onInit.add(init);
123
+tinyMCEPopup.requireLangPack();