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,53 +0,0 @@
1
-/**
2
- * del.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
-	SXE.initElementDialog('del');
13
-	if (SXE.currentAction == "update") {
14
-		setFormValue('datetime', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'datetime'));
15
-		setFormValue('cite', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'cite'));
16
-		SXE.showRemoveButton();
17
-	}
18
-}
19
-
20
-function setElementAttribs(elm) {
21
-	setAllCommonAttribs(elm);
22
-	setAttrib(elm, 'datetime');
23
-	setAttrib(elm, 'cite');
24
-	elm.removeAttribute('data-mce-new');
25
-}
26
-
27
-function insertDel() {
28
-	var elm = tinyMCEPopup.editor.dom.getParent(SXE.focusElement, 'DEL');
29
-
30
-	if (elm == null) {
31
-		var s = SXE.inst.selection.getContent();
32
-		if(s.length > 0) {
33
-			insertInlineElement('del');
34
-			var elementArray = SXE.inst.dom.select('del[data-mce-new]');
35
-			for (var i=0; i<elementArray.length; i++) {
36
-				var elm = elementArray[i];
37
-				setElementAttribs(elm);
38
-			}
39
-		}
40
-	} else {
41
-		setElementAttribs(elm);
42
-	}
43
-	tinyMCEPopup.editor.nodeChanged();
44
-	tinyMCEPopup.execCommand('mceEndUndoLevel');
45
-	tinyMCEPopup.close();
46
-}
47
-
48
-function removeDel() {
49
-	SXE.removeElement('del');
50
-	tinyMCEPopup.close();
51
-}
52
-
53
-tinyMCEPopup.onInit.add(init);
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,50 +1,53 @@
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-2008, Moxiecode Systems AB, All rights reserved.
6
- */
7
-
8
-function init() {
9
-	SXE.initElementDialog('del');
10
-	if (SXE.currentAction == "update") {
11
-		setFormValue('datetime', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'datetime'));
12
-		setFormValue('cite', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'cite'));
13
-		SXE.showRemoveButton();
14
-	}
15
-}
16
-
17
-function setElementAttribs(elm) {
18
-	setAllCommonAttribs(elm);
19
-	setAttrib(elm, 'datetime');
20
-	setAttrib(elm, 'cite');
21
-}
22
-
23
-function insertDel() {
24
-	var elm = tinyMCEPopup.editor.dom.getParent(SXE.focusElement, 'DEL');
25
-
26
-	tinyMCEPopup.execCommand('mceBeginUndoLevel');
27
-	if (elm == null) {
28
-		var s = SXE.inst.selection.getContent();
29
-		if(s.length > 0) {
30
-			tinyMCEPopup.execCommand('mceInsertContent', false, '<del id="#sxe_temp_del#">' + s + '</del>');
31
-			var elementArray = tinymce.grep(SXE.inst.dom.select('del'), function(n) {return n.id == '#sxe_temp_del#';});
32
-			for (var i=0; i<elementArray.length; i++) {
33
-				var elm = elementArray[i];
34
-				setElementAttribs(elm);
35
-			}
36
-		}
37
-	} else {
38
-		setElementAttribs(elm);
39
-	}
40
-	tinyMCEPopup.editor.nodeChanged();
41
-	tinyMCEPopup.execCommand('mceEndUndoLevel');
42
-	tinyMCEPopup.close();
43
-}
44
-
45
-function removeDel() {
46
-	SXE.removeElement('del');
47
-	tinyMCEPopup.close();
48
-}
49
-
50
-tinyMCEPopup.onInit.add(init);
1
+/**
2
+ * del.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
+	SXE.initElementDialog('del');
13
+	if (SXE.currentAction == "update") {
14
+		setFormValue('datetime', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'datetime'));
15
+		setFormValue('cite', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'cite'));
16
+		SXE.showRemoveButton();
17
+	}
18
+}
19
+
20
+function setElementAttribs(elm) {
21
+	setAllCommonAttribs(elm);
22
+	setAttrib(elm, 'datetime');
23
+	setAttrib(elm, 'cite');
24
+	elm.removeAttribute('data-mce-new');
25
+}
26
+
27
+function insertDel() {
28
+	var elm = tinyMCEPopup.editor.dom.getParent(SXE.focusElement, 'DEL');
29
+
30
+	if (elm == null) {
31
+		var s = SXE.inst.selection.getContent();
32
+		if(s.length > 0) {
33
+			insertInlineElement('del');
34
+			var elementArray = SXE.inst.dom.select('del[data-mce-new]');
35
+			for (var i=0; i<elementArray.length; i++) {
36
+				var elm = elementArray[i];
37
+				setElementAttribs(elm);
38
+			}
39
+		}
40
+	} else {
41
+		setElementAttribs(elm);
42
+	}
43
+	tinyMCEPopup.editor.nodeChanged();
44
+	tinyMCEPopup.execCommand('mceEndUndoLevel');
45
+	tinyMCEPopup.close();
46
+}
47
+
48
+function removeDel() {
49
+	SXE.removeElement('del');
50
+	tinyMCEPopup.close();
51
+}
52
+
53
+tinyMCEPopup.onInit.add(init);
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,50 @@
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-2008, Moxiecode Systems AB, All rights reserved.
6
+ */
7
+
8
+function init() {
9
+	SXE.initElementDialog('del');
10
+	if (SXE.currentAction == "update") {
11
+		setFormValue('datetime', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'datetime'));
12
+		setFormValue('cite', tinyMCEPopup.editor.dom.getAttrib(SXE.updateElement, 'cite'));
13
+		SXE.showRemoveButton();
14
+	}
15
+}
16
+
17
+function setElementAttribs(elm) {
18
+	setAllCommonAttribs(elm);
19
+	setAttrib(elm, 'datetime');
20
+	setAttrib(elm, 'cite');
21
+}
22
+
23
+function insertDel() {
24
+	var elm = tinyMCEPopup.editor.dom.getParent(SXE.focusElement, 'DEL');
25
+
26
+	tinyMCEPopup.execCommand('mceBeginUndoLevel');
27
+	if (elm == null) {
28
+		var s = SXE.inst.selection.getContent();
29
+		if(s.length > 0) {
30
+			tinyMCEPopup.execCommand('mceInsertContent', false, '<del id="#sxe_temp_del#">' + s + '</del>');
31
+			var elementArray = tinymce.grep(SXE.inst.dom.select('del'), function(n) {return n.id == '#sxe_temp_del#';});
32
+			for (var i=0; i<elementArray.length; i++) {
33
+				var elm = elementArray[i];
34
+				setElementAttribs(elm);
35
+			}
36
+		}
37
+	} else {
38
+		setElementAttribs(elm);
39
+	}
40
+	tinyMCEPopup.editor.nodeChanged();
41
+	tinyMCEPopup.execCommand('mceEndUndoLevel');
42
+	tinyMCEPopup.close();
43
+}
44
+
45
+function removeDel() {
46
+	SXE.removeElement('del');
47
+	tinyMCEPopup.close();
48
+}
49
+
50
+tinyMCEPopup.onInit.add(init);