How do I change the size of the editor window?

Last post 06-20-2006, 1:45 AM by Adam. 3 replies.
Sort Posts: Previous Next
  •  06-19-2006, 11:47 PM 20316

    How do I change the size of the editor window?

    It opens up to a default size. I'm looking in the Configuration/AutoConfigure folder, but the XML in all the .config files there seem to affect only the toolbar. In the <contextmenu> container, there's a line:
     
    <item name="Editing" value="True"/>
     
    Is that related? Even if so, I can't seem to use it to specify a different editor window size...
     
    Thanks,
     
    Jim
  •  06-19-2006, 11:55 PM 20317 in reply to 20316

    Re: How do I change the size of the editor window?

    Jim,
     
    The above setting is for context menu which is not implemented yet.
     
    To change the editor size, please try the following setting:
     

       Dim editor
       Set editor = New CuteEditor
       
       editor.ID = "Editor1"
       editor.Text = "Hello"
       editor.FilesPath = "CuteEditor_Files"
       editor.ShowBottomBar = false
       editor.Width  = 600
       editor.Height = 600
       editor.Draw()
     
     

    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

  •  06-20-2006, 12:30 AM 20318 in reply to 20317

    Re: How do I change the size of the editor window?

    Thanks again, Adam.
     
    That does the trick -- but then the toolbars don't wrap in a relative way. They seem to stop at a predetermined point when going from left to right, and end up being displayed in six rows (ignore color anolomies below):
     
     
    Jim
  •  06-20-2006, 1:45 AM 20320 in reply to 20318

    Re: How do I change the size of the editor window?

    Jim,
     
    Please open CuteEditor_Files\Configuration\AutoConfigure\default.config.
     
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
     <contextmenu>
      <item name="Editing" value="True"/>
      <item name="Format" value="True"/>
      <item name="Insert" value="True"/>
      <item name="InsertAdvanced" value="True"/>
      <item name="InsertFiles" value="True"/>
      <item name="InsertForms" value="True"/>
      <item name="Relative" value="True"/>
      <item name="Tags" value="True"/>
      <item name="Verbs" value="True"/>
     </contextmenu>
     <toolbars>
     
     <item type="g_start" />
      <item type="image" name="Save" postback="True" />
      <item type="image" name="New" imagename="newdoc" />
      <item type="image" name="Print" />
      <item type="image" name="Preview" imagename="bspreview"/>
      <item type="image" name="Find" />
      <item type="image" name="ToFullPage" imagename="fit" hotkey="F12" />
      <item type="image" name="FromFullPage" imagename="restore" hotkey="F12" />
      <!--
      <item type="image" name="EditInNewWindow" />
      -->
      <item type="image" name="CleanCode" imagename="cleanup" />
      <item type="image" name="NetSpell" imagename="spell" />
      <item type="separator" />
      <item type="image" name="Cut" />
      <item type="image" name="Copy" />
      <item type="image" name="Paste" />
      <item type="image" name="PasteText" />
      <item type="image" name="PasteWord" />
      <item type="image" name="Delete" />
      <item type="separator" />
      <item type="image" name="Undo" />
      <item type="image" name="Redo" />
      <item type="g_end" />
      
      <item type="g_start" />
      <item type="image" name="Break"/>
      <item type="image" name="InsertParagraph" imagename="Paragraph" />
      <item type="image" name="InsertPageBreak" imagename="InsertPageBreak" />
      <item type="image" name="InsertDate" imagename="insertdate" />
      <item type="image" name="InsertTime" imagename="timer" />
      <item type="separator" />
      <item type="image" name="InsertChars" imagename="specialchar" />
      <item type="image" name="InsertEmotion" imagename="emotion" />
      <item type="image" name="UniversalKeyboard" imagename="keyboard" />
      <!--<item type="image" name="InsertText" imagename="text" />-->
      <item type="image" name="InsertLayer" imagename="layer" />
      <item type="image" name="InsertFieldSet" imagename="groupbox" />
      <!--<item type="image" name="InsertFieldSet" imagename="text" />-->
      <item type="separator" />
      <item type="image" name="ImageGalleryByBrowsing" imagename="image" />
      <item type="image" name="InsertImage" imagename="eximage" />
      <item type="image" name="InsertFlash" imagename="flash" />
      <item type="image" name="InsertMedia" imagename="media" />
      <item type="image" name="InsertDocument" imagename="document" />
      <item type="image" name="InsertTemplate" imagename="template" />
      <item type="g_end" />

      <item type="linebreak" />
      <item type="g_start" />
      <!-- <item type="table" />-->
      <item type="image" name="InsertTable" imagename="instable" />
      <item type="image" name="ModifyTable" imagename="ModifyTable" />
      <item type="image" name="InsertRowTop" imagename="insrow_t" />
      <item type="image" name="InsertRowBottom" imagename="insrow_b" />
      <item type="image" name="DeleteRow" imagename="delrow" />
      <item type="image" name="InsertColumnLeft" imagename="inscol_l" />
      <item type="image" name="InsertColumnRight" imagename="inscol_r" />
      <item type="image" name="DeleteColumn" imagename="delcol" />
      <item type="image" name="InsertCell" imagename="inscell" />
      <item type="image" name="DeleteCell" imagename="delcell" />
      <item type="image" name="EditRow" imagename="row" />
      <item type="image" name="EditCell" imagename="cell" />
      <item type="image" name="MergeRight" imagename="mrgcell_r" />
      <item type="image" name="MergeBottom" imagename="mrgcell_b" />
      <item type="image" name="HorSplitCell" imagename="spltcell_r" />
      <item type="image" name="VerSplitCell" imagename="spltcell_b" />
      <!-- MergeCell/mrgcell SplitCell/spltcell -->
      <item type="g_end" />
      
      <item type="g_start" />
      <item type="image" name="InsertForm" imagename="Form" />
      <item type="image" name="InsertTextBox" imagename="textarea" />
      <item type="image" name="InsertInputText" imagename="textbox" />
      <item type="image" name="InsertInputPassword" imagename="passwordfield" />
      <item type="image" name="InsertInputhidden" imagename="hiddenfield" />
      <item type="image" name="InsertListBox" imagename="listbox" />
      <item type="image" name="InsertDropDown" imagename="dropdownbox" />
      <item type="image" name="InsertRadioBox" imagename="optionbutton" />
      <item type="image" name="InsertCheckBox" imagename="checkbox" />
      <item type="image" name="InsertInputImage" imagename="imagebutton" />
      <item type="image" name="InsertInputSubmit" imagename="submit" />
      <item type="image" name="InsertInputReset" imagename="Reset" />
      <item type="image" name="InsertInputButton" imagename="pushbutton" />
      <item type="image" name="DocumentPropertyPage" imagename="page" />
      <item type="g_end" /> 
      <item type="g_start" />
      <item type="image" name="BlockDirLTR" imagename="left_to_right" />
      <item type="image" name="BlockDirRTL" imagename="right_to_left" />
      <item type="image" name="BoxFormatting" imagename="box" />
      <item type="g_end" />
      <item type="linebreak" />
      <item type="g_start" />
      <item type="image" name="Bold" />
      <item type="image" name="Italic" />
      <item type="image" name="Underline" imagename="under" />
      <item type="image" name="JustifyLeft" imagename="left" />
      <item type="image" name="JustifyCenter" imagename="center" />
      <item type="image" name="JustifyRight" imagename="right" />
      <item type="image" name="JustifyFull" />
      <item type="image" name="JustifyNone" />
      <item type="image" name="RemoveFormat" imagename="unformat" />
      <item type="separator" />
      <item type="forecolor" />
      <item type="backcolor" />
      <item type="g_end" />
      <item type="g_start" />
      <item type="image" name="InsertOrderedList" imagename="numlist" />
      <item type="image" name="InsertUnorderedList" imagename="bullist" />
      <item type="image" name="Indent" />
      <item type="image" name="Outdent" />
      <item type="image" name="Superscript" />
      <item type="image" name="Subscript" />
      <item type="image" name="Strikethrough" imagename="strike" />
      <item type="image" name="Ucase" />
      <item type="image" name="Lcase"/>
      <item type="g_end" />
      
      <item type="g_start" />
      <item type="image" name="InsertHorizontalRule" imagename="rule" />
      <item type="image" name="Insertlink" imagename="link" />
      <item type="image" name="Unlink" />
      <item type="image" name="InsertAnchor" imagename="anchor" />
      <item type="image" name="ImageMap"/>
      <item type="image" name="AbsolutePosition" imagename="abspos" />
      <item type="image" name="BringForward" imagename="forward" />
      <item type="image" name="BringBackward" imagename="backward" />
      <item type="image" name="Toggleborder" imagename="borders" />
      <item type="image" name="SelectAll" />
      <item type="image" name="SelectNone" />
      <item type="image" name="Help" />
      <item type="g_end" />
      
      <item type="linebreak" />
      <item type="g_start" />
      <item type="dropdown" name="CssClass" command="CssClass" width="600" />
      <item type="dropdown" name="FormatBlock" command="FormatBlock" />
      <item type="dropdown" name="FontName" command="FontName" />
      <item type="dropdown" name="FontSize" command="FontSize" />  
      <item type="g_end" />
      <item type="g_start" />
      <item type="dropdown" name="Links" command="InsertLink" />
      <item type="dropdown" name="Codes" command="PasteHTML" />
      <item type="dropdown" name="Images" command="PasteImages" />
      <item type="dropdown" name="Zoom" command="Zoom" />
      <item type="holder" name="insertcustombutonhere" />
      <item type="g_end" />
     </toolbars>
    </configuration>
     
    You will find out all the editor tool buttons are grouped by <item type="g_start" />, <item type="g_end" />.
     

     

    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

View as RSS news feed in XML