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,36 +0,0 @@
1
-tinyMCEPopup.requireLangPack();
2
-
3
-var PasteTextDialog = {
4
-	init : function() {
5
-		this.resize();
6
-	},
7
-
8
-	insert : function() {
9
-		var h = tinyMCEPopup.dom.encode(document.getElementById('content').value), lines;
10
-
11
-		// Convert linebreaks into paragraphs
12
-		if (document.getElementById('linebreaks').checked) {
13
-			lines = h.split(/\r?\n/);
14
-			if (lines.length > 1) {
15
-				h = '';
16
-				tinymce.each(lines, function(row) {
17
-					h += '<p>' + row + '</p>';
18
-				});
19
-			}
20
-		}
21
-
22
-		tinyMCEPopup.editor.execCommand('mceInsertClipboardContent', false, {content : h});
23
-		tinyMCEPopup.close();
24
-	},
25
-
26
-	resize : function() {
27
-		var vp = tinyMCEPopup.dom.getViewPort(window), el;
28
-
29
-		el = document.getElementById('content');
30
-
31
-		el.style.width  = (vp.w - 20) + 'px';
32
-		el.style.height = (vp.h - 90) + 'px';
33
-	}
34
-};
35
-
36
-tinyMCEPopup.onInit.add(PasteTextDialog.init, PasteTextDialog);
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,36 @@
1
+tinyMCEPopup.requireLangPack();
2
+
3
+var PasteTextDialog = {
4
+	init : function() {
5
+		this.resize();
6
+	},
7
+
8
+	insert : function() {
9
+		var h = tinyMCEPopup.dom.encode(document.getElementById('content').value), lines;
10
+
11
+		// Convert linebreaks into paragraphs
12
+		if (document.getElementById('linebreaks').checked) {
13
+			lines = h.split(/\r?\n/);
14
+			if (lines.length > 1) {
15
+				h = '';
16
+				tinymce.each(lines, function(row) {
17
+					h += '<p>' + row + '</p>';
18
+				});
19
+			}
20
+		}
21
+
22
+		tinyMCEPopup.editor.execCommand('mceInsertClipboardContent', false, {content : h});
23
+		tinyMCEPopup.close();
24
+	},
25
+
26
+	resize : function() {
27
+		var vp = tinyMCEPopup.dom.getViewPort(window), el;
28
+
29
+		el = document.getElementById('content');
30
+
31
+		el.style.width  = (vp.w - 20) + 'px';
32
+		el.style.height = (vp.h - 90) + 'px';
33
+	}
34
+};
35
+
36
+tinyMCEPopup.onInit.add(PasteTextDialog.init, PasteTextDialog);