Install File Uploader plugin to TinyMCE
Installing a TinyMCE plugin is the same as installing any other plugin.
If a PHP sript is used, the uploading becomes available right after the add-on is installed. For users of other versions of the server loader and for those who use non-standard URL routing configuration, we recommend reading our server installation manual.
- Unpack archived files directly to
tinymce/plugins
. - Turn on the plugin in
initialization script:
plugins: 'jsplusFileUploader'
- Add these buttons to the toolbar definition:
- Opened File Uploader dialog
jsplusUpload
- Uploading file by URL
jsplusUploadUrl
- Uploading images using the File Uploader dialog and inserting their originals
jsplusUploadImage
- Uploading images using the File Uploader dialog and inserting their thumbnails with links
jsplusUploadPreview
- Uploading files using the File Uploader dialog and inserting links to them
jsplusUploadFile
- Quick uploading of images and inserting their originals
jsplusFastUploadImage
- Quick uploading of images and inserting their thumbnails
jsplusFastUploadPreview
- Quick uploading of files and inserting links to them
jsplusFastUploadFile
- Now you can use your installed plugins. Do not forget to sure that browser cache was cleared.
Configuration
Optionally, you can configure the plugin for your needs. A number of parameters are available for that. Parameters are a key-value structure that's passed along with the main config of TinyMCE.
Pass the parameters as follows:
tinymce.init({
selector: 'textarea',
jsplusFileUploader: {
key1: "value1",
key2: true
}
});
Explore the list of available options to see what settings are available to you.