Use templates plugin in tinymce

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
yabune
Forum Members
Forum Members
Posts: 40
Joined: Wed Dec 05, 2007 7:28 pm

Use templates plugin in tinymce

Post by yabune »

Anyone knows how to use tinymce templates plugin?

I tried to follow tinymce wiki instructions but without success...

Here is what I did:

1) Enabled templates plugin in tinymce extension configuration (inside cms admin)
2) Added templates tag to tinymce toolbar2 (inside cms admin)
3) In tinyconfig.tpl added the following code:

Code: Select all

template_templates : [
	{
		title : "template",
		src : "template.htm",
		description : "Adds Editors Name and Staff ID"
	}
]
4) upload template.htm to tinyconfig.tpl dir

The template icon now shows up in the toolbar, but when I click on it the templates listbox is empty, not populated...

I tried also to add the template_templates code to extra config (inside cms admin) instead, but didn't work.

Any help on this...

Thanks!!!
yabune
Forum Members
Forum Members
Posts: 40
Joined: Wed Dec 05, 2007 7:28 pm

Re: Use templates plugin in tinymce

Post by yabune »

anyone can help me on this?
jgeertsen
New Member
New Member
Posts: 2
Joined: Sun Jul 27, 2008 2:18 pm

Re: Use templates plugin in tinymce

Post by jgeertsen »

did you already solved the problem? I can't get it to work.
Last edited by jgeertsen on Fri Aug 15, 2008 2:49 pm, edited 1 time in total.
cyberman

Re: Use templates plugin in tinymce

Post by cyberman »

yabune wrote: 3) In tinyconfig.tpl added the following code:

Code: Select all

template_templates : [
	{
		title : "template",
		src : "template.htm",
		description : "Adds Editors Name and Staff ID"
	}
]
It's a little bit difficult to add this cause tinyconfig.tpl will be parsed by Smarty. The {} should be masked by literal tags.
BlueLaw
Forum Members
Forum Members
Posts: 42
Joined: Wed Jan 02, 2008 10:27 pm

Re: Use templates plugin in tinymce

Post by BlueLaw »

I'd really like to get this working too. I've done the same as Yabune but tried putting the code in the literal tags as was suggested, like this:

Code: Select all

  template_templates : [
	{literal} {
		title : "template",
		src : "template.htm",
		description : "Adds Editors Name and Staff ID"
	}{/literal}
]
Still for me the templates list is empty. Are people successfully using the template plugin? If so, please share how.

Thanks.
gads
New Member
New Member
Posts: 2
Joined: Sun Nov 09, 2008 2:14 pm

Re: Use templates plugin in tinymce

Post by gads »

I made it work  ;D
I created a template and save it to the website's root folder, added the code to initialize tinyMCE on the extra config field (inside cmsms admin) and simply removed the line breaks.

Code: Select all

template_templates : [ { title : "Template Test", src : "template.htm", description : "Just testing" } ]
Locked

Return to “Modules/Add-Ons”