This topic is locked

How Do You Setup Predefined Templates

5/27/2013 9:30:00 AM
TinyMCE Editor plugin support forum
C
careysado author

How do you setup Predefined Templates so when a user selects the Template menu button, a list of templates appears?
I'm not finding anything on WHERE to initialize this setting.
Any help would be greatly appreciated!
Thanks!

admin 5/28/2013

Not a TinyMCE expert here but hope this article can help:

http://www.tinymce.com/forum/viewtopic.php?id=14507

C
careysado author 6/1/2013



Not a TinyMCE expert here but hope this article can help:

http://www.tinymce.com/forum/viewtopic.php?id=14507


Found out where this goes to make it work! In the ASPRunnerProPlugins/Edit folder there is a file named EditTinyMCE.js
In this file in the init function is where you would add this information. Here is an example:
tinyMCE.init({

// General options

mode : "exact",

elements : this.valContId,

theme : "advanced",

plugins : "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,visualblocks",
//Templates

template_templates : [

{

title : "Testig Templates",

src : "test_one.html",

description : "Testing templates for users."

}

],

I don't believe this version handles an external template list; however, I believe by downloading a more recent version of TinyMCE along with this plugin it's possible. It will require some detail work in renaming files.
I highly recommend this great plugin!

K
keithh0427 10/6/2017

This topic is 4 years old, so wondering if this forum is still active.
I have a similar problem.
I have managed to be able to list the templates, but cannot get them to insert into the editor window.
Anybody?