meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:tinymce [2023/12/02 12:49] – [config.php] duncancplugin:tinymce [2024/05/20 00:00] (current) – external edit 127.0.0.1
Line 2: Line 2:
  
 ---- plugin ---- ---- plugin ----
 +
 description: This plugin provides TinyMCE 4, an HTML text editor, for editing messages and templates. This is for phpList 3.x. description: This plugin provides TinyMCE 4, an HTML text editor, for editing messages and templates. This is for phpList 3.x.
 author     : Duncan Cameron author     : Duncan Cameron
Line 39: Line 40:
  
 ==== Location of the elFinder directory====  ==== Location of the elFinder directory==== 
-The elFinder directory must be within the web root. If you have the default plugin location, ''define("PLUGIN_ROOTDIR""plugins")'' in config.php, then the plugin will use the correct path automatically, e.g.+The elFinder directory must be within the web root. If you have the default plugin location, ''define('PLUGIN_ROOTDIR''plugins')'' in config.php, then the plugin will use the correct path automatically, e.g.
  
 ''/lists/admin/plugins/TinyMCEPlugin/elfinder'' ''/lists/admin/plugins/TinyMCEPlugin/elfinder''
Line 45: Line 46:
 If you have placed the plugin directory outside of the web root then you must move or copy the `elfinder` directory from the plugin's directory to somewhere within the web root. Then use the Settings page (menu Config > Settings) to specify the path to the elFinder directory. The path should be from the web root, such as ''/elFinder'', not the filesystem path. If you have placed the plugin directory outside of the web root then you must move or copy the `elfinder` directory from the plugin's directory to somewhere within the web root. Then use the Settings page (menu Config > Settings) to specify the path to the elFinder directory. The path should be from the web root, such as ''/elFinder'', not the filesystem path.
  
-Also, if you move or rename the phpList directory or the plugin directory after installing the plugin, then you will need +Also, if you move or rename the phpList directory or the plugin directory after installing the plugin, then you will need to modify the path because it will not change automatically.
-to modify the path because it will not change automatically.+
  
 ===== Configuration ===== ===== Configuration =====
Line 54: Line 54:
 The UPLOADIMAGES_DIR value in config.php must be set to the location of a directory where elFinder can store uploaded images. The directory must be writable by the web server. Note that the value is relative to the web root and must not contain a leading '/'. The UPLOADIMAGES_DIR value in config.php must be set to the location of a directory where elFinder can store uploaded images. The directory must be writable by the web server. Note that the value is relative to the web root and must not contain a leading '/'.
  
 +<code php>define('UPLOADIMAGES_DIR', 'upload');</code>
 If the UPLOADIMAGES_DIR value in config.php is set to ''false'' then elFinder will be disabled and image uploading will not be possible. If the UPLOADIMAGES_DIR value in config.php is set to ''false'' then elFinder will be disabled and image uploading will not be possible.
  
Line 61: Line 62:
  
  
-elFinder will use a subdirectory of UPLOADIMAGES_DIR named after the admin login id (1, 2, 3 etc.), creating the subdirectory on first-use. The subdirectory is private to the admin, and there is no sharing of image files. The URL of an image will therefore be something like this for admin id 2+elFinder will use a subdirectory of UPLOADIMAGES_DIR named after the admin login id (1, 2, 3 etc.). The subdirectory is private to the admin, and there is no sharing of image files with other ordinary admins. The URL of an image will therefore be something like this for admin id 2
  
-<nowiki>https://mysite.com/upload/2/funny_cat.jpg</nowiki>+''<nowiki>https://mysite.com/upload/2/funny_cat.jpg</nowiki>''
  
-To give all admins, including super admins, their own subdirectory add +To give all admins, including super admins, their own subdirectory use 
  
 <code php>define('IMAGE_DIR_PER_ADMIN', 'all');</code> <code php>define('IMAGE_DIR_PER_ADMIN', 'all');</code>