Re: Custom Button within the toolbar

  •  04-16-2008, 1:19 PM

    Re: Custom Button within the toolbar

    I've created a work-around by changing 3 lines in the cuteeditor include declaration
     
     
    there are two places where it looks for "holder" in the code, and those were commented out !! (so I guess the functionality never got implemented?! - it answer my question on the other threads)
     
    I've therefore made the following changes:

    replaced this
            case "holder":
                's = s &  AddToolbarLineBreak
     
    by this: 
            case "holder":
                s = s & "##HOLDER##"
     
    And then
        strTemp = strTemp & CustomAddons
     
    and replacing it with 
        strTemp = replace(strTemp, "##HOLDER##", CustomAddons)
        and removing the If statement around it since the marker (if it exists) needs replacing anyway.
     
    Et voila... simple but works for me! All you have to do is move the <item type="holder"> in the XML config file where you want your custom buton...
     
    only inconvenient this anly allows for 1 location for custom buttons... with a bit of work the parsing of the XML could be improved and allowing to place (as it should) any buttons anywhere...
     
     
    enjoy... 
    Steph.
View Complete Thread