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:08:35
Showing 5 changed files
... ...
@@ -17,6 +17,7 @@ echo "
17 17
 		width: '580',
18 18
 		language: '$language',
19 19
 		convert_urls: 'false',
20
+		entity_encoding: 'raw',
20 21
 		mode: 'textareas',
21 22
 		extended_valid_elements: 'a[name|href|target|title]',
22 23
 		plugins: 'advhr,advimage,advlink,searchreplace,contextmenu,preview,fullscreen,paste" . ($current == "adminarea" ? ",codeprotect" : "") . "',
... ...
@@ -17,6 +17,7 @@ echo "
17 17
 		width: '580',
18 18
 		language: '$language',
19 19
 		convert_urls: 'false',
20
+		entity_encoding: 'raw',
20 21
 		mode: 'textareas',
21 22
 		extended_valid_elements: 'a[name|href|target|title]',
22 23
 		plugins: 'advhr,advimage,advlink,searchreplace,contextmenu,preview,fullscreen,paste,wordcount" . ($current == "adminarea" ? ",codeprotect" : "") . "',
... ...
@@ -36,6 +36,7 @@ echo "
36 36
 		relative_urls: false,
37 37
 		remove_script_host: false,
38 38
     	convert_urls: true,
39
+		entity_encoding: 'raw',
39 40
 		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',
40 41
 		toolbar1: 'bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | bullist | undo redo | fullscreen code | link unlink | emoticons image anchor hr ',	image_advtab: true,
41 42
      	paste_word_valid_elements: 'b,strong,i,em,p,span,u,strike,br',
... ...
@@ -38,6 +38,7 @@ echo "
38 38
 		relative_urls: false,
39 39
 		remove_script_host: false,
40 40
     	convert_urls: true,
41
+		entity_encoding: 'raw',
41 42
 		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',
42 43
 		toolbar1: 'bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | bullist | undo redo | fullscreen code | link unlink | emoticons image anchor hr ',	image_advtab: true,
43 44
      	paste_word_valid_elements: 'b,strong,i,em,p,span,u,strike,br',
... ...
@@ -39,6 +39,7 @@ echo "
39 39
 		relative_urls: false,
40 40
 		remove_script_host: false,
41 41
     	convert_urls: true,
42
+		entity_encoding: 'raw',
42 43
 		toolbar1: 'bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | bullist | undo redo | fullscreen code | link unlink | emoticons image anchor hr ',	image_advtab: true,
43 44
 	    menu: {
44 45
 			file: { title: 'File', items: 'newdocument' },