Browse code

TinyMCE version directories relocated to /tinymce/ directory, each with its own version numbers: 2, 3, 4 - Slight naming tweak to TinyMCE dropdown in site settings

Clarissa Walker authored on 2026/07/27 13:46:03
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,42 +0,0 @@
1
-tinyMCEPopup.requireLangPack();
2
-
3
-function saveContent() {
4
-	if (document.forms[0].htmlSource.value == '') {
5
-		tinyMCEPopup.close();
6
-		return false;
7
-	}
8
-
9
-	tinyMCEPopup.execCommand('mcePasteText', false, {
10
-		html : document.forms[0].htmlSource.value,
11
-		linebreaks : document.forms[0].linebreaks.checked
12
-	});
13
-
14
-	tinyMCEPopup.close();
15
-}
16
-
17
-function onLoadInit() {
18
-	tinyMCEPopup.resizeToInnerSize();
19
-
20
-	// Remove Gecko spellchecking
21
-	if (tinymce.isGecko)
22
-		document.body.spellcheck = tinyMCEPopup.getParam("gecko_spellcheck");
23
-
24
-	resizeInputs();
25
-}
26
-
27
-var wHeight=0, wWidth=0, owHeight=0, owWidth=0;
28
-
29
-function resizeInputs() {
30
-	if (!tinymce.isIE) {
31
-		wHeight = self.innerHeight-80;
32
-		wWidth = self.innerWidth-17;
33
-	} else {
34
-		wHeight = document.body.clientHeight-80;
35
-		wWidth = document.body.clientWidth-17;
36
-	}
37
-
38
-	document.forms[0].htmlSource.style.height = Math.abs(wHeight) + 'px';
39
-	document.forms[0].htmlSource.style.width  = Math.abs(wWidth) + 'px';
40
-}
41
-
42
-tinyMCEPopup.onInit.add(onLoadInit);
43 0
\ No newline at end of file
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 1
new file mode 100644
... ...
@@ -0,0 +1,42 @@
1
+tinyMCEPopup.requireLangPack();
2
+
3
+function saveContent() {
4
+	if (document.forms[0].htmlSource.value == '') {
5
+		tinyMCEPopup.close();
6
+		return false;
7
+	}
8
+
9
+	tinyMCEPopup.execCommand('mcePasteText', false, {
10
+		html : document.forms[0].htmlSource.value,
11
+		linebreaks : document.forms[0].linebreaks.checked
12
+	});
13
+
14
+	tinyMCEPopup.close();
15
+}
16
+
17
+function onLoadInit() {
18
+	tinyMCEPopup.resizeToInnerSize();
19
+
20
+	// Remove Gecko spellchecking
21
+	if (tinymce.isGecko)
22
+		document.body.spellcheck = tinyMCEPopup.getParam("gecko_spellcheck");
23
+
24
+	resizeInputs();
25
+}
26
+
27
+var wHeight=0, wWidth=0, owHeight=0, owWidth=0;
28
+
29
+function resizeInputs() {
30
+	if (!tinymce.isIE) {
31
+		wHeight = self.innerHeight-80;
32
+		wWidth = self.innerWidth-17;
33
+	} else {
34
+		wHeight = document.body.clientHeight-80;
35
+		wWidth = document.body.clientWidth-17;
36
+	}
37
+
38
+	document.forms[0].htmlSource.style.height = Math.abs(wHeight) + 'px';
39
+	document.forms[0].htmlSource.style.width  = Math.abs(wWidth) + 'px';
40
+}
41
+
42
+tinyMCEPopup.onInit.add(onLoadInit);
0 43
\ No newline at end of file