Inheritance: ScriptControlBase
        protected override void CreateChildControls() {
            BottomToolbar.Buttons.Clear();
            FillBottomToolbar();
            if(BottomToolbar.Buttons.Count == 0) {
                if(EditPanel.Toolbars.Contains(BottomToolbar)) 
                    EditPanel.Toolbars.Remove(BottomToolbar);
                _bottomToolbarRow.Visible = false;
                (EditPanel.Parent as TableCell).Style["border-bottom-width"] = "0";
            }
            else {
                BottomToolbar.AlwaysVisible = true;
                BottomToolbar.ButtonImagesFolder = ButtonImagesFolder;
                for(var i = 0; i < BottomToolbar.Buttons.Count; i++)
                    BottomToolbar.Buttons[i].IgnoreTab = IgnoreTab;
            }

            TopToolbar.Buttons.Clear();
            FillTopToolbar();
            if(TopToolbar.Buttons.Count == 0) {
                if(EditPanel.Toolbars.Contains(TopToolbar)) 
                    EditPanel.Toolbars.Remove(TopToolbar);
                _topToolbarRow.Visible = false;
                (EditPanel.Parent as TableCell).Style["border-top-width"] = "0";
                _changingToolbar = null;
            }
            else {
                TopToolbar.ButtonImagesFolder = ButtonImagesFolder;
                for(var i = 0; i < TopToolbar.Buttons.Count; i++) {
                    TopToolbar.Buttons[i].IgnoreTab = IgnoreTab;
                    TopToolbar.Buttons[i].PreservePlace = TopToolbarPreservePlace;
                }
            }

            if(!Height.IsEmpty)
                (Controls[0] as Table).Style.Add(HtmlTextWriterStyle.Height, Height.ToString());
            if(!Width.IsEmpty)
                (Controls[0] as Table).Style.Add(HtmlTextWriterStyle.Width, Width.ToString());

            if(EditPanel.IE(Page) && !IsDesign) {
                _editPanelCell.Style[HtmlTextWriterStyle.Height] = "expression(Sys.Extended.UI.HtmlEditor.Editor.MidleCellHeightForIE(this.parentNode.parentNode.parentNode,this.parentNode))";
            }
            EditPanel.IgnoreTab = IgnoreTab;
        }
        protected override void OnInit(EventArgs e) {
            base.OnInit(e);

            EditPanel.Toolbars.Add(BottomToolbar);
            _changingToolbar = TopToolbar;
            EditPanel.Toolbars.Add(TopToolbar);

            var table = new Table();
            TableRow row;
            TableCell cell;

            table.CellPadding = 0;
            table.CellSpacing = 0;
            table.CssClass = "ajax__htmleditor_editor_container";
            table.Style[HtmlTextWriterStyle.BorderCollapse] = "separate";

            _topToolbarRow = row = new TableRow();
            cell = new TableCell();
            cell.Controls.Add(TopToolbar);
            cell.CssClass = "ajax__htmleditor_editor_toptoolbar";

            row.Cells.Add(cell);
            table.Rows.Add(row);

            row = new TableRow();
            _editPanelCell = cell = new TableCell();
            cell.CssClass = "ajax__htmleditor_editor_editpanel";

            cell.Controls.Add(EditPanel);

            row.Cells.Add(cell);
            table.Rows.Add(row);

            _bottomToolbarRow = row = new TableRow();
            cell = new TableCell();

            cell.Controls.Add(BottomToolbar);
            cell.CssClass = "ajax__htmleditor_editor_bottomtoolbar";
            row.Cells.Add(cell);
            table.Rows.Add(row);

            Controls.Add(table);
        }