Browse code

tinymce inits for 4, 5, 6: fine-tuning editor size, 6: formatting fix

Clarissa Walker authored on 2026/11/16 10:11:18
Showing 3 changed files
... ...
@@ -30,8 +30,10 @@ echo "
30 30
 		invalid_styles: 'color,font-size,margin,line-height,font-family,margin-top,margin-bottom',
31 31
 		plugins: 'wordcount emoticons fullscreen anchor code hr image link paste ',
32 32
 		skin: 'lightgray',
33
-		height: 300,
34
-		width: 580,
33
+		min_height: 200,
34
+		min_width: 200,
35
+		height: 250,
36
+		width: 500,
35 37
 	    browser_spellcheck: true,
36 38
 		relative_urls: false,
37 39
 		remove_script_host: false,
... ...
@@ -32,6 +32,7 @@ echo "
32 32
 		skin: 'oxide',
33 33
 		min_height: 300,
34 34
 		min_width: 200,
35
+		height: 350,
35 36
 		width: 500,
36 37
 		toolbar_location: 'top',
37 38
 	    browser_spellcheck: true,
... ...
@@ -32,15 +32,16 @@ echo "
32 32
 		skin: 'tinymce-5',
33 33
 		min_height: 300,
34 34
 		min_width: 200,
35
-		height: 300,
36
-		width: 580,
35
+		height: 350,
36
+		width: 500,
37 37
 		toolbar_location: 'top',
38 38
 	    browser_spellcheck: true,
39 39
 		relative_urls: false,
40 40
 		remove_script_host: false,
41 41
     	convert_urls: true,
42 42
 		entity_encoding: 'raw',
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
+		toolbar1: 'bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | bullist | undo redo | fullscreen code | link unlink | emoticons image anchor hr ',
44
+		image_advtab: true,
44 45
 	    menu: {
45 46
 			file: { title: 'File', items: 'newdocument' },
46 47
 			edit: { title: 'Edit', items: 'undo redo | cut copy paste pastetext | selectall' },