2011-09-04, 18:36:16
(This post was last modified: 2011-09-05, 01:19:29 by seanlangford.)
I'm in the process of setting up TinyMCE for a GetSimple site I'm working on and have managed to find where to insert my own custom styles :-)
However, I would very much appreciate help in getting the "Template" plugin to work.
I've activated the"Template" plugin in the TinyMCE admin area and now get the "Template" button shown in the editor interface.
What I couldn't see is where to place my own templates / snippets so that they are added to the "Select a template..." drop-down in the "Templates" pop-up window.
I've compared the "Full Featured Example" of TinyMCE (http://www.tinymce.com/tryit/full.php), which contains demo templates, with the GetSimple plugin and seen that the demo templates in the "Full Featured Example" are contained in a "templates" folder alongside a "lists" folder.
This "lists" folder contains a "template_list.js" file which references demo templates.
I've also seen that line 284 of the "TinyMCEPlugin.php" file contains a reference to such a "template_list.js" file:
Therrefore I've assumed that the files I've just mentioned are missing from the GetSimple version of TinyMCE and have copied the "templates" and "lists" folders from the TinyMCE download version - the standard one, not the jQuery version - into the "TinyMCEPlugin" folder of my GetSimple site, alongside the "lang" and "tiny_mce" folders.
I've then set line 284 of the "TinyMCEPlugin.php" file to read:
Unfortunately this hasn't worked :-(
Because my understanding of coding is limited and thinking that the "TinyMCEPlugin.php" file may not be running in the GetSimple "plugins" folder (I hope this is the right expression), I've tried extending the address for the "template_external_list_url" parameter but to no avail.
My tether has reached its end.
Has anyone any ideas as to what I'm doing wrong?
By the way, I'm using version 0.2.1 and am setting this up in a perfectly clean GetSimple installation with no other plugins.
Many thanks in advance,
Alan
However, I would very much appreciate help in getting the "Template" plugin to work.
I've activated the"Template" plugin in the TinyMCE admin area and now get the "Template" button shown in the editor interface.
What I couldn't see is where to place my own templates / snippets so that they are added to the "Select a template..." drop-down in the "Templates" pop-up window.
I've compared the "Full Featured Example" of TinyMCE (http://www.tinymce.com/tryit/full.php), which contains demo templates, with the GetSimple plugin and seen that the demo templates in the "Full Featured Example" are contained in a "templates" folder alongside a "lists" folder.
This "lists" folder contains a "template_list.js" file which references demo templates.
I've also seen that line 284 of the "TinyMCEPlugin.php" file contains a reference to such a "template_list.js" file:
Code:
template_external_list_url : "lists/template_list.js",
Therrefore I've assumed that the files I've just mentioned are missing from the GetSimple version of TinyMCE and have copied the "templates" and "lists" folders from the TinyMCE download version - the standard one, not the jQuery version - into the "TinyMCEPlugin" folder of my GetSimple site, alongside the "lang" and "tiny_mce" folders.
I've then set line 284 of the "TinyMCEPlugin.php" file to read:
Code:
template_external_list_url : "TinyMCEPlugin/lists/template_list.js"
Unfortunately this hasn't worked :-(
Because my understanding of coding is limited and thinking that the "TinyMCEPlugin.php" file may not be running in the GetSimple "plugins" folder (I hope this is the right expression), I've tried extending the address for the "template_external_list_url" parameter but to no avail.
My tether has reached its end.
Has anyone any ideas as to what I'm doing wrong?
By the way, I'm using version 0.2.1 and am setting this up in a perfectly clean GetSimple installation with no other plugins.
Many thanks in advance,
Alan
Web Developer and Translator (German > English)