#1 2014-06-09 21:17:52

raskrial
Member
Registered: 2014-03-03
Posts: 22

tinyMCE and predefined template

Hi,

i'm looking for a way to create and add some predefined template to tinyMCE text editor and seem that  i can't find any good documentation do far. A crash course or little help would really appreciated to understand the work flow for that.

thx.

Offline

#2 2014-06-11 19:49:54

raskrial
Member
Registered: 2014-03-03
Posts: 22

Re: tinyMCE and predefined template

still looking to find a way on how it work !! really need it to build specifics pages with specifics editable zones.
any help would be really appreciated !

Offline

#3 2014-06-12 11:10:25

rmartinez
Member
Registered: 2013-01-16
Posts: 88

Re: tinyMCE and predefined template

Hi raskrial,

I'm working over the 1.0.4 version and you have to create a file call tinymce_templates.js in /themes/your_theme/assets/templates/ similar to this:

function getTinyTemplates(path_to_templates)
{
	var template_templates = new Array(
		{
			title : "Header list",
			src : path_to_templates + "header-list.html",
			description : "Header list"
		}
	);
	
	return template_templates; 
}

Each element of template_templates is a template html located in /themes/your_theme/assets/templates/ too.

The changes will be realized next time you log in.

Regards.

Offline

#4 2014-06-12 16:47:06

raskrial
Member
Registered: 2014-03-03
Posts: 22

Re: tinyMCE and predefined template

thx a lot for the infos !!

Offline

What's Ionize ?

Ionize is an Open Source Content Management System created by webdesigners for webdesigners.

Created and maintained by Partikule and Toopixel, Ionize wants to be the easiest and most powerful CMS.

Can I help ?

Because talent is nothing without involvement, we are looking for motivated coders and webdesigners to join the project team.

Resources

Website : ionizecms.com
Documentation : doc.ionizecms.com

Development : Ionize on GitHub
Translations : Ionize Translations