FreeTextBox

The no. 1 free ASP.NET HTML Editor.
Welcome to FreeTextBox Sign in | Join | Help
in Search

Change Size

Last post 09-04-2008, 7:29 PM by saxmana. 1 replies.
Sort Posts: Previous Next
  •  09-04-2008, 12:21 PM 9427

    Change Size

    How do we change the size of the FreeTextbox?  Is it possible?  I'd like it to be much smaller on my pages.

    Thanks!
  •  09-04-2008, 7:29 PM 9432 in reply to 9427

    Re: Here's a page sample...

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="ContentEditor.aspx.cs" Inherits="App_Aspx_ContentEditor" EnableViewState="true" ValidateRequest="false" %>
    <%@ Register TagPrefix="lcb" Assembly="TextBoxEditor" Namespace="FreeTextBoxControls" %>

    <!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>Content Editor...</title>
        <style type="text/css">
            .lcbContentEditorControl { position:absolute; left:0; top:0; width:100%; height:600px; }
        </style>
        <script type="text/javascript" language="javascript">
            window.onresize = resizeEditor;
            function resizeEditor() {
                var explorerMargin = 88;
                var editorText = document.getElementById("Editor");
                var editorDesign = document.getElementById("Editor_designEditor");
                var editorHtml = document.getElementById("Editor_htmlEditorArea");
                var editorPreview = document.getElementById("Editor_previewEditor");
                if (editorPreview) editorPreview.style.height = document.body.parentElement.offsetHeight - explorerMargin;
                if (editorDesign) editorDesign.style.height = document.body.parentElement.offsetHeight - explorerMargin;
                if (editorHtml) editorHtml.style.height = document.body.parentElement.offsetHeight - explorerMargin + 3;
                if (editorText) editorText.style.height = document.body.parentElement.offsetHeight - explorerMargin;
            }
        </script>
    </head>
    <body onload="resizeEditor()" style="margin: 0 0 0 0; padding: 0 0 0 0;">
        <form id="formContentExplorer" runat="server">
        <div style="margin: 0 0 0 0; position:absolute; left:0; top:0; width:100%; height:100%; ">
            <asp:HiddenField ID="HiddenFieldContentItem" runat="server" Value="" />
            <lcb:FreeTextBox ID="Editor" Focus="true" runat="server"  Width="100%" Height="100%" OnSaveClick="Editor_SaveClick"
                ImageGalleryPath="/www.lcb.uoregon/App_Themes/Content/Images/" ImageGalleryUrl="ContentGallery.aspx?key=lcbw"
                ToolbarStyleConfiguration="Office2003"
                toolbarlayout="Cut,Copy,Paste,Delete;Undo,Redo,Print,Save,
                        |SymbolsMenu;InsertRule,InsertDate,InsertTime,InsertDiv,EditStyle,Preview,SelectAll,
                        |InsertTable,InsertTableRowAfter,InsertTableRowBefore,InsertTableColumnAfter,InsertTableColumnBefore,DeleteTableRow,DeleteTableColumn,
                        |JustifyLeft,JustifyRight,JustifyCenter,JustifyFull;BulletedList,NumberedList,Indent,Outdent;CreateLink,Unlink,InsertImageFromGallery,
                        |Bold,Italic,Underline,Strikethrough,Superscript,Subscript,RemoveFormat,ParagraphMenu,FontFacesMenu,FontSizesMenu,FontForeColorsMenu,FontForeColorPicker"
                />   
        </div>
        </form>
    </body>
    </html>

View as RSS news feed in XML
www.freetextbox.com