Documentation

Integration / TinyMCE Integration

These are setting you should set in your TinyMCE configuration in order to get the setup you want. See below for examples!
If you are using moxman.browse, check these API docs.

 Name  Description
moxiemanager_<type>_settings

Configure seperate options for image, media or link dialog, change <type> to either image, file or media. Example Config.

moxiemanager_image_settings : { 
view : 'thumbs',
extensions : 'jpg,png,gif'
}

This will override any "global" settings.

moxiemanager_path Public file system path to display by default. For example: /files/images
moxiemanager_rootpath Public file system path to use as the root. This option needs to be within the configured backend filesystem.rootpath for security reasons. For example: /files/images if the server side rootpath is /root/site/files.
moxiemanager_view Default depends on what dialog in TinyMCE it is opened from, image insert dialog = thumbs, link insert dialog = files. Can be either files or thumbs.
moxiemanager_insert Boolean option that allows you to disable the insert toolbar, but clicking image still works. Note: Option might change behaviour in the future.
moxiemanager_filter Initial filter to apply to file selection. This option will fill the filter input field with the value specified.
moxiemanager_extensions Comma separated list of file extensions to display for.
moxiemanager_include_file_pattern Regexp pattern that the files need to match inorder to be displayed.
moxiemanager_exclude_file_pattern Regexp pattern that will be excluded from file list if it matches.
moxiemanager_include_directory_pattern Regexp pattern that the directories need to mathc inorder to be displayed.
moxiemanager_exclude_directory_pattern Regexp pattern that will be exluded from file list if it matches.
moxiemanager_disabled_tools Comma separated list of tools to disable. Check out moxiemanager_filelist_main_toolbar for configuring this instead in newer versions.
moxiemanager_hidden_tools Comma separated list of tools to hide. Check out moxiemanager_filelist_main_toolbar for configuring this instead in newer versions.
moxiemanager_image_template HTML template used when inserting images directly into TinyMCE using the browse button.
moxiemanager_file_template HTML template used when inserting non image files directly into TinyMCE using the browse button.
moxiemanager_width Set the width of the window, a low value may break the UI.
moxiemanager_height Set the height of the window, a low value may break the UI.
moxiemanager_fullscreen Boolean value, true if you wish the window to max width/height.
moxiemanager_title Sets the title of the main window, replaces "MoxieManager".
moxiemanager_leftpanel Boolean value, true by default. Show or hide the left filesystems panel.
moxiemanager_date_format Enables you to specify a date format to be used when inserting files.
moxiemanager_insert_filter Callback that enables you to filter the data before it gets inserted.
moxiemanager_skin Enables you to set a custom skin to be used created by the skin tool.
relative_urls TinyMCE Option, if this option is set to true, TinyMCE will take the path returned from MoxieManager and make it relative.
document_base_url TinyMCE Option, defaults to the current page. This is the point relative URLs will be relative to.
remove_script_host TinyMCE Option, Enables you to remove scheme/protocol and host name from urls produced. So relative_urls : false and remove_script_host : true will get site absolute paths like /my/files/here.jpg
moxiemanager_unique_urls Appends an unique id to bust client side caches.
moxiemanager_filelist_main_toolbar Enables you to control what to display in the main toolbar of the filelist browse dialog.
moxiemanager_filelist_utils_toolbar Enables you to control what to display in the utils toolbar of the filelist browse dialog.
moxiemanager_filelist_manage_menu Enables you to configure what to display in the manage button menu.
moxiemanager_filelist_context_menu Enables you to configure what to display in the context menu.
moxiemanager_filelist_insert_toolbar Enables you to configure what to display in the insert/cancel toolbar.
moxiemanager_editimage_main_toolbar Enables you to control what to display in the main toolbar of the edit image dialog.
moxiemanager_editimage_zoom_toolbar Enables you to control what to display in the zoom toobar of the edit image dialog.
moxiemanager_editimage_actions_toolbar Enables you to control what to display in the actions toolbar/pabel of the edit image dialog.
moxiemanager_remember_last_path When enabled the MoxieManager will remember the last path the user was in when a file was selected.
moxiemanager_sort_by Changes the default sort by column for file listings.
moxiemanager_sort_order Changes the default sort order asc/desc.
moxiemanager_unique_urls Appends an unique id to bust client side caches.
moxiemanager_upload_auto_close Automatically closes the upload dialog if all files where successfully uploaded. Disabled by default.

Examples

tinymce.init({
...
moxiemanager_rootpath : '/files/subfolder'
});

The rootpath must be within the rootpath set in config.php for security reasons.

$moxieManagerConfig["filesystem.rootpath"] = "/www/site/files";

moxiemanager_rootpath : '/files/subfolder' is a valid config option if subfolder exists.

moxiemanager_rootpath : '/othersite/files' is NOT a valid config option.

tinymce.init({
...
relative_urls : false,
});

MoxieManager always returns an absolute URL to TinyMCE, then the TinyMCE options convert the urls. In this case, relative_urls is set to false, when you save in TinyMCE, the resulting path will be:

/my/absolute/url.jpg

Since remove_script_host is false by default.

tinymce.init({
...
relative_urls : false,
remove_script_host : false
});

With this example, urls will be absolute WITH the site domain.

http://www.mysite.com/my/absolute/url.jpg

Note, lets say you have admin.mysite.com, you can configure document_base_url : 'http://www.mysite.com'

Then URLs should become just as above, and not admin.mysite.com absolute.