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,49 +0,0 @@
1
-<?php
2
-
3
-echo "
4
-<script language=\"javascript\" type=\"text/javascript\"><!--";
5
-		$tinymessage = dbquery("SELECT message_text FROM " . TABLEPREFIX . "fanfiction_messages WHERE message_name = 'tinyMCE' LIMIT 1");
6
-		list($tinysettings) = dbrow($tinymessage);
7
-		if (!empty($tinysettings) && $current != "adminarea")
8
-		{
9
-			echo $tinysettings;
10
-		}
11
-		else
12
-		{
13
-			echo "
14
-	tinyMCE.init({ 
15
-		theme: 'advanced',
16
-		height: '250',
17
-		language: '$language',
18
-		convert_urls: 'false',
19
-		mode: 'textareas',
20
-		extended_valid_elements: 'a[name|href|target|title]',
21
-		plugins: 'advhr,advimage,advlink,searchreplace,contextmenu,preview,fullscreen,paste" . ($current == "adminarea" ? ",codeprotect" : "") . "',
22
-		theme_advanced_buttons1_add: 'fontsizeselect',
23
-		theme_advanced_buttons2_add: 'separator,pasteword,pastetext',
24
-		theme_advanced_buttons3_add_before: 'tablecontrols,separator',
25
-		theme_advanced_buttons3_add: 'advhr',
26
-		theme_advanced_toolbar_align: 'center',
27
-		theme_advanced_statusbar_location: 'bottom',
28
-		theme_advanced_path: 'false',
29
-		editor_deselector: 'mceNoEditor',
30
-";
31
-			if (USERUID)
32
-				echo "		external_image_list_url : '" . STORIESPATH . "/" . USERUID . "/images/imagelist.js',";
33
-			echo "
34
-		theme_advanced_resizing: true," . ($current == "adminarea" ? "\n\t\tentity_encoding: 'raw'" : "\n\t\tinvalid_elements: 'script,object,applet,iframe'") . "
35
-   });
36
-";
37
-		}
38
-		echo "
39
-var tinyMCEmode = true;
40
-	function toogleEditorMode(id) {
41
-		var elm = document.getElementById(id);
42
-
43
-		if (tinyMCE.getInstanceById(id) == null)
44
-			tinyMCE.execCommand('mceAddControl', false, id);
45
-		else
46
-			tinyMCE.execCommand('mceRemoveControl', false, id);
47
-	}
48
-";
49
-		echo " --></script>";
50 0
\ No newline at end of file
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
new file mode 100644
... ...
@@ -0,0 +1,49 @@
1
+<?php
2
+
3
+echo "
4
+<script language=\"javascript\" type=\"text/javascript\"><!--";
5
+		$tinymessage = dbquery("SELECT message_text FROM " . TABLEPREFIX . "fanfiction_messages WHERE message_name = 'tinyMCE' LIMIT 1");
6
+		list($tinysettings) = dbrow($tinymessage);
7
+		if (!empty($tinysettings) && $current != "adminarea")
8
+		{
9
+			echo $tinysettings;
10
+		}
11
+		else
12
+		{
13
+			echo "
14
+	tinyMCE.init({ 
15
+		theme: 'advanced',
16
+		height: '250',
17
+		language: '$language',
18
+		convert_urls: 'false',
19
+		mode: 'textareas',
20
+		extended_valid_elements: 'a[name|href|target|title]',
21
+		plugins: 'advhr,advimage,advlink,searchreplace,contextmenu,preview,fullscreen,paste" . ($current == "adminarea" ? ",codeprotect" : "") . "',
22
+		theme_advanced_buttons1_add: 'fontsizeselect',
23
+		theme_advanced_buttons2_add: 'separator,pasteword,pastetext',
24
+		theme_advanced_buttons3_add_before: 'tablecontrols,separator',
25
+		theme_advanced_buttons3_add: 'advhr',
26
+		theme_advanced_toolbar_align: 'center',
27
+		theme_advanced_statusbar_location: 'bottom',
28
+		theme_advanced_path: 'false',
29
+		editor_deselector: 'mceNoEditor',
30
+";
31
+			if (USERUID)
32
+				echo "		external_image_list_url : '" . STORIESPATH . "/" . USERUID . "/images/imagelist.js',";
33
+			echo "
34
+		theme_advanced_resizing: true," . ($current == "adminarea" ? "\n\t\tentity_encoding: 'raw'" : "\n\t\tinvalid_elements: 'script,object,applet,iframe'") . "
35
+   });
36
+";
37
+		}
38
+		echo "
39
+var tinyMCEmode = true;
40
+	function toogleEditorMode(id) {
41
+		var elm = document.getElementById(id);
42
+
43
+		if (tinyMCE.getInstanceById(id) == null)
44
+			tinyMCE.execCommand('mceAddControl', false, id);
45
+		else
46
+			tinyMCE.execCommand('mceRemoveControl', false, id);
47
+	}
48
+";
49
+		echo " --></script>";
0 50
\ No newline at end of file