Browse code

tinymce inits: prevent html entity encoding from wrecking special characters in any text form it uses, especially in stories

Clarissa Walker authored on 2026/09/18 00:11:38
Showing 2 changed files
... ...
@@ -16,6 +16,7 @@ echo "
16 16
 		height: '250',
17 17
 		language: '$language',
18 18
 		convert_urls: 'false',
19
+		entity_encoding: 'raw',
19 20
 		mode: 'textareas',
20 21
 		extended_valid_elements: 'a[name|href|target|title]',
21 22
 		plugins: 'advhr,advimage,advlink,searchreplace,contextmenu,preview,fullscreen,paste" . ($current == "adminarea" ? ",codeprotect" : "") . "',
... ...
@@ -46,4 +47,4 @@ var tinyMCEmode = true;
46 47
 			tinyMCE.execCommand('mceRemoveControl', false, id);
47 48
 	}
48 49
 ";
49
-		echo " --></script>";
50 50
\ No newline at end of file
51
+		echo " --></script>";
... ...
@@ -34,6 +34,7 @@ echo "
34 34
 		relative_urls: false,
35 35
 		remove_script_host: false,
36 36
     	convert_urls: true,
37
+		entity_encoding: 'raw',
37 38
 		paste_word_valid_elements: 'b,strong,i,em,h1,h2,u,p,ol,ul,li,a[href],span,color,font-size,font-color,font-family,mark,table,tr,td',
38 39
 		toolbar1: 'bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | bullist | undo redo | fullscreen code | link unlink | emoticons image anchor hr ',	image_advtab: true,
39 40
      	paste_word_valid_elements: 'b,strong,i,em,p,span,u,strike,br',