Browse code

Set tinyMCE 4 window size and resize behavior to be consistent with 2 and 3 versions

Clarissa Walker authored on 2026/07/29 21:06:49
Showing 1 changed files
... ...
@@ -1,11 +1,11 @@
1 1
 <?php
2
-$image_list_path = STORIESPATH . "/" . USERUID . "/images/imagelist.js";
2
+$image_list_path = STORIESPATH . "/" . USERUID . "../images/imagelist.js";
3 3
 $image_list_exists = file_exists($image_list_path); 
4 4
  
5 5
 if (USERUID && $image_list_exists)
6 6
 {
7 7
 echo "
8
-<script src='".STORIESPATH . "/" . USERUID . "/images/imagelist.js"."'></script>";
8
+<script src='".STORIESPATH . "/" . USERUID . "../images/imagelist.js"."'></script>";
9 9
 } 
10 10
 echo "
11 11
 	<script language=\"javascript\" type=\"text/javascript\"><!--";
... ...
@@ -23,13 +23,15 @@ echo "
23 23
 		echo "
24 24
 	tinymce.init({
25 25
   		selector: 'textarea:not(.mceNoEditor)',
26
+  		resize: 'both',
26 27
   		menubar: false,
27 28
 		language: '$tinylanguage',
28 29
   		theme: 'modern',
29 30
 		invalid_styles: 'color,font-size,margin,line-height,font-family,margin-top,margin-bottom',
30 31
 		plugins: 'wordcount emoticons fullscreen anchor code hr image link paste ',
31 32
 		skin: 'lightgray',
32
-		min_height: 200,
33
+		min_height: 250,
34
+		width: 440,
33 35
 	    browser_spellcheck: true,
34 36
 		relative_urls: false,
35 37
 		remove_script_host: false,