Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mikael Mørup 297 posts 326 karma points
    Aug 04, 2009 @ 09:01
    Mikael Mørup
    0

    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

  • Chris Koiak 700 posts 2626 karma points
    Aug 04, 2009 @ 09:10
    Chris Koiak
    0

    Have you tried bouncing your app pool by editing you web.config file?

    This config file may only be read on Application Start.

  • Mikael Mørup 297 posts 326 karma points
    Aug 04, 2009 @ 09:13
    Mikael Mørup
    0

    Yes i tried that every time i changed the tinyMceconfig file.

  • Chris Koiak 700 posts 2626 karma points
    Aug 04, 2009 @ 17:22
    Chris Koiak
    100

    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>
  • Chris Koiak 700 posts 2626 karma points
    Aug 04, 2009 @ 17:22
    Chris Koiak
    0

    Making the change and opening it in FF.

  • Mikael Mørup 297 posts 326 karma points
    Aug 04, 2009 @ 22:18
    Mikael Mørup
    0

    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 :-)

  • Matt Salmon 22 posts 43 karma points
    Nov 16, 2010 @ 20:28
    Matt Salmon
    0

    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?

Please Sign in or register to post replies

Write your reply to:

Draft