PRODUCTION VERSION DOWNLOAD: GitHub Release
Released under Creative Commons Attribution-NonCommercial 3.0 Unported License.
- PHP 7.1 or above strongly recommended
- Apache 2.2 or 2.4
-
Copy the folder
tinymce/plugins/responsivefilemanagertotinymce/plugins/on your server.Note: Remember that
responsivefilemanageris not thefilemanagerfolder but an additional plugin. -
Configure TinyMCE:
Make sure your TinyMCE settings includeresponsivefilemanagerin the plugins list:- Add
responsivefilemanagerto the plugins list.
- Add
tinymce.init({
selector: 'textarea',
height: 500,
plugins: [
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'preview',
'anchor', 'searchreplace', 'visualblocks', 'code', 'fullscreen',
'insertdatetime', 'media', 'table', 'help', 'wordcount', 'responsivefilemanager'
],
toolbar: 'undo redo | blocks | ' +
'bold italic backcolor | alignleft aligncenter ' +
'alignright alignjustify | bullist numlist outdent indent | ' +
'removeformat | media image | help',
content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:16px }',
external_filemanager_path:"/filemanager/",
filemanager_title:"Responsive Filemanager",
external_plugins: { "filemanager" : "/filemanager/plugin.min.js" }
});You can pass these variables in the TinyMCE initialization:
- filemanager_title: The title of the file manager window. Default value is
"Responsive filemanager". - filemanager_sort_by: The element to sort by. Possible values:
name,size,extension,date. Default value is"". - filemanager_descending: Whether to sort in descending order. Possible values:
1(descending) or0(ascending). Default value is"0".
Warning
If you want the full path URL in TinyMCE paths, you can set relative_urls: false in your TinyMCE initialization.
- external_filemanager_path and external_plugins path must be absolute from the root and must point to the filemanager folder, not the responsivefilemanager plugin folder.
Change the path in your TinyMCE init function for external_filemanager_path and external_plugins. The path must be an absolute path from the base URL of your site and must start with /. For example, if the filemanager folder is located at www.site.com/filemanager/, the path should look like that.
Warning
If you are updating from an older version (from 1 to 7), substitute your TinyMCE with the new version, or download and copy only the image, media, and link folders from the original files into your TinyMCE plugin folder.
tinymce.init({
selector: 'textarea',
skin: "oxide-dark",
content_css: "dark",
height: 500,
plugins: [
'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'preview',
'anchor', 'searchreplace', 'visualblocks', 'code', 'fullscreen',
'insertdatetime', 'media', 'table', 'help', 'wordcount', 'responsivefilemanager'
],
toolbar: 'undo redo | blocks | ' +
'bold italic backcolor | alignleft aligncenter ' +
'alignright alignjustify | bullist numlist outdent indent | ' +
'removeformat | media image | help',
content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:16px }',
external_filemanager_path:"/filemanager/",
filemanager_title:"Responsive Filemanager",
external_plugins: { "filemanager" : "/filemanager/plugin.min.js" }
});