Step 1: Turn on "template" in the TinyMCE Plugins tab
Step 2: Insert "template" in TinyMCE profiles (backend and advanced probably)
Step 3: In the "Advanced" tab of TinyMCE enter the following into the "Extra Configuration"
Code: Select all
template_templates : [
{title : "Template Title",
src : "/absolute-path/to/file/html-template-file.htm",
description : "Template Description"}
]
Step 5: Now you will have an icon on your TinyMCE toolbar marked template. Click that, choose your template from the dropdown. Hit insert and all of that html, including the surrounding divs will be inserted at your cursor location.
So thats it. Pretty simple
Now if someone can tell me how to create variables that the user can define each time they use the template, that'll be peachy
