Default toolbar profile with custom button

  •  11-13-2013, 4:26 AM

    Default toolbar profile with custom button

    Hi!

     

    I'm doing my best to add a custom button to the default toolbar of Ritch Text Editor but so far it hasn't worked. In the custom button example 1 (vb.net) I seem to be able to add a custom button only when I use code that creates an entire new toolbar.

     

    Like this:

    <script runat="server">
        Protected Overloads Overrides Sub OnInit(ByVal e As EventArgs)
            MyBase.OnInit(e)
            Editor1.ToolbarItems = "{bold,italic,underlinemenu}{forecolor,backcolor,fontname,fontsize}{justifyleft,justifycenter,justifyright,justifyfull}{insertorderedlist,insertunorderedlist,outdent,indent}{insertlink,insertimage,insertblockquote,syntaxhighlighter}{unlink,removeformat}//{mybutton1}"
        End Sub
    </script>

     

    But what I like to do is this:

      Editor1.ToolbarItems = Editor1.ToolbarItems + "//{mybutton1}" 

    EXTENDING the default toolbar (same as I'm typing in right now) with a custom button. Just after the Google Map button.

     

    So how to do this? Thanks!

View Complete Thread