-
- 788 Posts
My best advice would be to download the full tinymce package from their website. In that package is an examples folder, looks like the full featured example shows how to set it all up quite easily.
http://tinymce.moxiecode.com/
-
- 788 Posts
Ok, heres how to get this set up: download the attached zip file and then follow the instructions below.
This modification allows custom pre made templates to be used in your tinymce editor
Unzip the package on your local comp, file structure should be as follows:
-- tinymce_modx_templates
* tinymce_templates_howto.txt
the following folder structure matches the tinymce3101 in the plugins folder
tinymce3101
- tinymce.functions.php (modified and commented, so back up your original in case)
* lists/ + files
* templates/ + files
* plugins/template/ (this folder may already be in there, I added it just in case)
Upload the files in the tinymce3101 folder to your server keeping the same folder structure
The following additions are only needed if you use the editor in custom mode
Go into your manager/configuration/interface and features/
at the end of the custom plugins field, add ,template
at the end of the buttons2 line add ,template
To add new templates, create your new template and save it in the templates/ folder.
Modify the lists/template_list.js file so your new template is listed.
There will be a Template icon available now on the bottom row of your tinymce editor.
-
- 615 Posts
Is it possible to use this method for Image captions as well, from inside TinyMCE? Lets say, insert an image wright some text, mark it with a TinyMcs template via a button, and then a DIV is placed around the image with the text nicely placed under the image, inside the DIV?
I think, thererfor I am! But what I am, and why...?
-
- 2,877 Posts
-
- 615 Posts
I think, thererfor I am! But what I am, and why...?