ComboBox in Toolbar of HtmlEditor

  1. #1

    [CLOSED] ComboBox in Toolbar of HtmlEditor

    Hi.

    I'd like to add a a ComboBox in a Toolbar of HtmlEditor bellow the others components. I found others examples about it, but in my case I need that the ComboBox is bellow other componentes of Toolbar.

    Thanks.




    ok worked
    Thanks
    Last edited by glauco.leme; Apr 16, 2012 at 7:26 PM.
  2. #2
    Hi,

    Welcome to Ext.NET!

    I can suggest the following solution.

    Example
    <%@ Page Language="C#" %>
     
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Ext.NET Example</title>
    
        <script type="text/javascript">
            var onInitialize = function (editor) {
                new Ext.Toolbar({
                    renderTo : editor.wrap.dom.firstChild,
                    items    : editor.bin
                });
            };
        </script>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:HtmlEditor ID="HtmlEditor1" runat="server">
                <Bin>
                    <ext:ComboBox runat="server">
                        <Items>
                            <ext:ListItem Text="Item 1" />
                            <ext:ListItem Text="Item 2" />
                        </Items>
                    </ext:ComboBox>
                </Bin>
                <Listeners>
                    <Initialize Fn="onInitialize" />
                </Listeners>
            </ext:HtmlEditor>
        </form>
    </body>
    </html>

Similar Threads

  1. [CLOSED] Localizing htmleditor toolbar
    By SymSure in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 30, 2012, 6:55 PM
  2. [CLOSED] Hide HtmlEditor Toolbar
    By ndotis in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 23, 2011, 5:39 PM
  3. HtmlEditor toolbar configuration
    By okutbay in forum 1.x Help
    Replies: 0
    Last Post: May 06, 2010, 8:43 AM
  4. HtmlEditor Auto-Hide Toolbar
    By koss in forum 1.x Help
    Replies: 0
    Last Post: Feb 23, 2010, 11:31 AM
  5. [CLOSED] Editable Label with HtmlEditor AND Toolbar
    By macap in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 05, 2009, 3:28 PM

Tags for this Thread

Posting Permissions