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,43 +0,0 @@
1
-tinyMCEPopup.requireLangPack();
2
-
3
-var EmotionsDialog = {
4
-	addKeyboardNavigation: function(){
5
-		var tableElm, cells, settings;
6
-			
7
-		cells = tinyMCEPopup.dom.select("a.emoticon_link", "emoticon_table");
8
-			
9
-		settings ={
10
-			root: "emoticon_table",
11
-			items: cells
12
-		};
13
-		cells[0].tabindex=0;
14
-		tinyMCEPopup.dom.addClass(cells[0], "mceFocus");
15
-		if (tinymce.isGecko) {
16
-			cells[0].focus();		
17
-		} else {
18
-			setTimeout(function(){
19
-				cells[0].focus();
20
-			}, 100);
21
-		}
22
-		tinyMCEPopup.editor.windowManager.createInstance('tinymce.ui.KeyboardNavigation', settings, tinyMCEPopup.dom);
23
-	}, 
24
-	init : function(ed) {
25
-		tinyMCEPopup.resizeToInnerSize();
26
-		this.addKeyboardNavigation();
27
-	},
28
-
29
-	insert : function(file, title) {
30
-		var ed = tinyMCEPopup.editor, dom = ed.dom;
31
-
32
-		tinyMCEPopup.execCommand('mceInsertContent', false, dom.createHTML('img', {
33
-			src : tinyMCEPopup.getWindowArg('plugin_url') + '/img/' + file,
34
-			alt : ed.getLang(title),
35
-			title : ed.getLang(title),
36
-			border : 0
37
-		}));
38
-
39
-		tinyMCEPopup.close();
40
-	}
41
-};
42
-
43
-tinyMCEPopup.onInit.add(EmotionsDialog.init, EmotionsDialog);
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,22 +1,43 @@
1
-tinyMCEPopup.requireLangPack();
2
-
3
-var EmotionsDialog = {
4
-	init : function(ed) {
5
-		tinyMCEPopup.resizeToInnerSize();
6
-	},
7
-
8
-	insert : function(file, title) {
9
-		var ed = tinyMCEPopup.editor, dom = ed.dom;
10
-
11
-		tinyMCEPopup.execCommand('mceInsertContent', false, dom.createHTML('img', {
12
-			src : tinyMCEPopup.getWindowArg('plugin_url') + '/img/' + file,
13
-			alt : ed.getLang(title),
14
-			title : ed.getLang(title),
15
-			border : 0
16
-		}));
17
-
18
-		tinyMCEPopup.close();
19
-	}
20
-};
21
-
22
-tinyMCEPopup.onInit.add(EmotionsDialog.init, EmotionsDialog);
1
+tinyMCEPopup.requireLangPack();
2
+
3
+var EmotionsDialog = {
4
+	addKeyboardNavigation: function(){
5
+		var tableElm, cells, settings;
6
+			
7
+		cells = tinyMCEPopup.dom.select("a.emoticon_link", "emoticon_table");
8
+			
9
+		settings ={
10
+			root: "emoticon_table",
11
+			items: cells
12
+		};
13
+		cells[0].tabindex=0;
14
+		tinyMCEPopup.dom.addClass(cells[0], "mceFocus");
15
+		if (tinymce.isGecko) {
16
+			cells[0].focus();		
17
+		} else {
18
+			setTimeout(function(){
19
+				cells[0].focus();
20
+			}, 100);
21
+		}
22
+		tinyMCEPopup.editor.windowManager.createInstance('tinymce.ui.KeyboardNavigation', settings, tinyMCEPopup.dom);
23
+	}, 
24
+	init : function(ed) {
25
+		tinyMCEPopup.resizeToInnerSize();
26
+		this.addKeyboardNavigation();
27
+	},
28
+
29
+	insert : function(file, title) {
30
+		var ed = tinyMCEPopup.editor, dom = ed.dom;
31
+
32
+		tinyMCEPopup.execCommand('mceInsertContent', false, dom.createHTML('img', {
33
+			src : tinyMCEPopup.getWindowArg('plugin_url') + '/img/' + file,
34
+			alt : ed.getLang(title),
35
+			title : ed.getLang(title),
36
+			border : 0
37
+		}));
38
+
39
+		tinyMCEPopup.close();
40
+	}
41
+};
42
+
43
+tinyMCEPopup.onInit.add(EmotionsDialog.init, EmotionsDialog);
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,22 @@
1
+tinyMCEPopup.requireLangPack();
2
+
3
+var EmotionsDialog = {
4
+	init : function(ed) {
5
+		tinyMCEPopup.resizeToInnerSize();
6
+	},
7
+
8
+	insert : function(file, title) {
9
+		var ed = tinyMCEPopup.editor, dom = ed.dom;
10
+
11
+		tinyMCEPopup.execCommand('mceInsertContent', false, dom.createHTML('img', {
12
+			src : tinyMCEPopup.getWindowArg('plugin_url') + '/img/' + file,
13
+			alt : ed.getLang(title),
14
+			title : ed.getLang(title),
15
+			border : 0
16
+		}));
17
+
18
+		tinyMCEPopup.close();
19
+	}
20
+};
21
+
22
+tinyMCEPopup.onInit.add(EmotionsDialog.init, EmotionsDialog);