At the moment FCKEditor integration has no support for templates. It's one things to add in the button but more complex to define the path to custom templates. Is this feature planned for 2.0 version?

CommentFileSizeAuthor
#3 wysiwyg_templates.tar_.gz2.06 KBwouters_f
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sun’s picture

Project: Wysiwyg » Wysiwyg API template plugin
Version: 6.x-2.0 » 6.x-1.0.x-dev
Component: Editor - FCKeditor » Code
jenlampton’s picture

I need to do some research to see how the FCK Editor supports templates, but I would like to update the way this WYSIWYG API template plugin handles the UI for template file location anyway. This seems like a good reason to dig back in. :-)

Will get to it as soon as I can.

Jen

wouters_f’s picture

Title: Add support for templates » content type html template so users can manage own templates
Issue tags: +tinymce wysiwyg, +cck content types
FileSize
2.06 KB

This nifty module enables you to let the users add/remove/update their own templates.
Probably there are some imperfections, please point them out for me.
Attached you may find code to have a content type html_template

contenttype
-> html_template
fields
-> body is used to save the html in
-> filename is the file of the html used by wysiwyg.

functionalities
-> writes templates.js index file
-> writes template files to specified folder.

guybedford’s picture

Status: Active » Closed (duplicate)
Issue tags: -tinymce wysiwyg, -cck content types

Thanks for the code. Looks interesting, but there is already an admin interface for templates being worked on here -

http://drupal.org/node/922842

We're running the templates through the database rather than files and have also included additional editor support.

You have got me thinking again about whether we should be using nodes for the templates though.

shaneherrington’s picture

Version: 6.x-1.0.x-dev » 7.x-2.9
Status: Closed (duplicate) » Active

Would be nice if when you updated the template content all nodes that use that template were updated to reflect the changes. Like the module as is but if I have to manually update 100+ pages every time I update a template... there's not much point for the template to begin with. No?

guybedford’s picture

Status: Active » Closed (works as designed)