Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I finally got the template plugin to work in tinyMce, but i can only make it work with one template.
In the customconfig section i put this:
<config key="entity_encoding"> raw',template_templates:[ { title : "Two col", src : "/test/twocols.txt", description : "Two col layout" }], template_popup_height : '400</config>
And it works, letting me select my two col template,and inserts the DIV tag structure i defined in the file.
When i try to add more templates to the config section it stops working. What i tried until now is:
<config key="entity_encoding"> raw',template_templates:[ { title : "Two col", src : "/test/twocols.txt", description : "Two col layout" } { title : "Three col", src : "/test/threecols.txt", description : "Three col layout" }], template_popup_height : '400</config>
and:
<config key="entity_encoding"> raw',template_templates:[ { title : "Two col", src : "/test/twocols.txt", description : "Two col layout" }, { title : "Three col", src : "/test/threecols.txt", description : "Three col layout" }], template_popup_height : '400</config>
The second block above has a "," between the two sections inspired by the very bottom of this page :http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/template, but none of them works.
How do i specify more than one template ?
ThanksMikael
Have you tried bouncing your app pool by editing you web.config file?
This config file may only be read on Application Start.
Yes i tried that every time i changed the tinyMceconfig file.
mmmm
This may be an IE caching issue... but if not try moving the start of the text onto the same line as the <config> node.
Here is an example of a working 2 template config section (notice the raw text is on the first line):
<config key="entity_encoding">raw', template_templates:[ { title : "Two Column", src : "/home/TwoCol.aspx", description : "Two Column layout" }, { title : "Blockquote", src : "/home/Blockquote.aspx", description : "Blockquote" }], template_popup_height : '400</config>
Making the change and opening it in FF.
Thanks a lot that made the difference. The only difference i can see is how the config info is split across the lines.
But as long as it works i'm happy :-)
Has anyone tried this in Umbraco 4.5.2?
I've followed all the instructions in the referenced Wiki article, including restarting the app pool, but there's no icon shown in my WYSIWYG editor?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
TinyMce template plugin problem
I finally got the template plugin to work in tinyMce, but i can only make it work with one template.
In the customconfig section i put this:
<config key="entity_encoding">
raw',template_templates:[
{
title : "Two col",
src : "/test/twocols.txt",
description : "Two col layout"
}],
template_popup_height : '400</config>
And it works, letting me select my two col template,and inserts the DIV tag structure i defined in the file.
When i try to add more templates to the config section it stops working. What i tried until now is:
<config key="entity_encoding">
raw',template_templates:[
{
title : "Two col",
src : "/test/twocols.txt",
description : "Two col layout"
}
{
title : "Three col",
src : "/test/threecols.txt",
description : "Three col layout"
}],
template_popup_height : '400</config>
and:
<config key="entity_encoding">
raw',template_templates:[
{
title : "Two col",
src : "/test/twocols.txt",
description : "Two col layout"
},
{
title : "Three col",
src : "/test/threecols.txt",
description : "Three col layout"
}],
template_popup_height : '400</config>
The second block above has a "," between the two sections inspired by the very bottom of this page :
http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/template
, but none of them works.
How do i specify more than one template ?
Thanks
Mikael
Have you tried bouncing your app pool by editing you web.config file?
This config file may only be read on Application Start.
Yes i tried that every time i changed the tinyMceconfig file.
mmmm
This may be an IE caching issue... but if not try moving the start of the text onto the same line as the <config> node.
Here is an example of a working 2 template config section (notice the raw text is on the first line):
Making the change and opening it in FF.
Thanks a lot that made the difference. The only difference i can see is how the config info is split across the lines.
But as long as it works i'm happy :-)
Has anyone tried this in Umbraco 4.5.2?
I've followed all the instructions in the referenced Wiki article, including restarting the app pool, but there's no icon shown in my WYSIWYG editor?
is working on a reply...