Editor height

Last post 03-05-2010, 10:05 PM by Eric. 3 replies.
Sort Posts: Previous Next
  •  03-04-2010, 2:31 PM 59179

    Editor height

    hi,
     
     i am havinng some difficulties setting the editor height.
     
    i've tried it 2 ways:
     
      var editor1 = document.getElementById('CE_Editor3_ID');

        // Set the editor
        editor1.Height = "100";
     
     
    and  
     

    Dim editor3
    Set editor3 = New CuteEditor
    editor3.ID = "Editor3"
    editor3.Text = MessageField2
    editor3.FilesPath = "CuteEditor_Files"
    editor3.ConfigurationPath = "CuteEditor_Files/Configuration/AutoConfigure/minimal.config"
    editor3.DisableItemList="New, Save, Print, BackColor"
       editor3.RemoveServerNamesFromUrl = true
    editor3.URLType = "Absolute"
    editor3.Height = 100
    editor3.Draw()
     
    but neither of the methods work :(
     
    please advise. 
  •  03-04-2010, 3:47 PM 59180 in reply to 59179

    Re: Editor height

    Both

    editor.Height="700"

     and
     
     editor.Height=700
     
    Should work.
     
    Can you explain the problems in details?

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  03-04-2010, 4:04 PM 59183 in reply to 59180

    Re: Editor height

    hm, well  I need the editor to be much smaller then the default size when it first loads.
     
    preferable the size that it gets when you click on the (-) sign on the bottom right to decrease height.
     
    but editor3.Height=500 makes it bigger, but if i change it to 200, its back to default.
     
    is there a minimum editor size that i am exceeding? 
  •  03-05-2010, 10:05 PM 59201 in reply to 59183

    Re: Editor height

    Dear xrum,
     
    When you use editor3.Height =200, the sum of editor text area and editor tool bar  is 200px, if you set editor.AutoConfigure = "Full" and height is 200, the height of edit area will be very small. When you set editor use minimal configuration mode, you can set height smaller, please refer to the following code:
    <!-- #include file = "cuteeditor_files/include_CuteEditor.asp" -->
    <html> 
        <head>
      <link rel="stylesheet" href="asp.css"  type="text/css" />
     </head>
        <body>  
      <form name="theForm" action="Get_HtmlContent.asp" method="post">     
      <h1>Enable All Toolbars</h1>
      <hr>
      <p>This example shows you all the predefined buttons. </p>
      <br />
      <%
       Dim editor
       Set editor = New CuteEditor
       editor.ID = "Editor1"
       editor.Text = "Type here"
          editor.EditorBodyStyle = "font:normal 12px arial;"
       editor.ResizeMode ="PlusMinus"
       editor.EditorWysiwygModeCss = "asp.css"
       editor.AutoConfigure = "Minimal"
       editor.Height="110"
       editor.Draw()            
       ' Request.Form(ID) access from other page
      %>      
      </form>
     </body>
    </html>
     
    Regards,
    Eric
View as RSS news feed in XML