Wysiwyg API template plugin

The 'template' plugin for TinyMCE allows a user to select a HTML template from a drop-down and insert it into the WYSIWYG text-area. This module supports that TinyMCE plugin for use with the WYSIWYG API, but of course, if anyone wanted to provide additions for FCK or other editors I'll be happy to include those too.

dependencies

* Wysiwyg API

installation

* Install as usual, see http://drupal.org/node/70151 for further information.

* Go to Administer > Site configuration > Wysiwyg Template, and verify the values
for your path and file name of your template registry file (this file will
hold the names and locations of your templates)

* Create the template registry file in the specified location, its contents should
look something like this:

// These templates will be displayed as a dropdown
var tinyMCETemplateList = [
// Name, URL, Description
["Template One", "sites/all/files/templates/template1.html", "Template One"],
["Template Two", "sites/all/files/templates/template2.html", "Template Two"]
];

configuration

* Go to Administer > Site configuration > Wysiwyg and set up a wysiwyg profile or click "edit" to make changes. under "Buttons and Plugins" you'll see "Insert Templates" as a new option

TODO
- record HTML templates via upload on configuration page, no registry file necessary

Releases

Official releasesDateSizeLinksStatus
6.x-1.0-beta12009-Jun-107.81 KBRecommended for 6.xThis is currently the recommended release for 6.x.


 
 

Drupal is a registered trademark of Dries Buytaert.