Set fixed size of cutesoft text area

Last post 11-10-2011, 8:30 AM by WilliamK. 8 replies.
Sort Posts: Previous Next
  •  01-31-2005, 9:35 PM 3823

    Set fixed size of cutesoft text area

    I'm trying to restrict the amount of physical space that a user of the editor has to enter text, images, etc on my website. Can someone tell me how I can create hard width and height boundaries for the editor? I’m not sure if there is a way to set a distinct number of pixels for the width and height, but that would be great if that was possible. If possible, I would also like to deactivate the scrollbars in this area. Can you tell me how I can set the text to wrap to the next line automatically? Any help that you could lend me would be appreciated.

    Thanks.

  •  02-01-2005, 4:23 AM 3834 in reply to 3823

    Re: Set fixed size of cutesoft text area

    Hello,
     
    I can already provide you some info on some of the questions;
     
    1. To have a fixed height & width, i.e. add the following lines
       <%                                                     
             Dim editor
             Set editor = New CuteEditor
             editor.ID = "Editor1"
             editor.Text = "..."
       
             editor.Width = 574
             editor.Height = 200


             editor.Draw()
       %>    



    2. Disabling the scrollbars in the editor;                                               
     
    You can create a style sheet that you will apply to the editor;
     
    add the following line to the editor code

            editor.StyleSheetPath = "mystylesheet.css"

    In your stylesheet you create a class .editBox
    and define the following property in this class;overflow: hidden;

    For more info on overflow in CSS see http://www.w3schools.com/css

    If you use a predefined style, such as Office2003, you can also modify the selector '.editBox', and modify the value of the 'Overflow' property. It is default set to 'Auto'. (can be located in the 'include.CuteEditor.asp' at line 589)
     
    3. Wrap Text
     
    I have the same problem with this one... still looking for a solution... see my post: http://cutesoft.net/forums/ShowPost.aspx?PostID=3806
     
     
    Hope to be of any assistance ...
     
    Greetings
    Wim
     
     
     
  •  11-08-2011, 5:09 PM 71235 in reply to 3834

    Re: Set fixed size of cutesoft text area

    This advice may be obsolete...
     
    editor.StyleSheetPath = "mystylesheet.css"
     
    results in error..
     
     Microsoft VBScript runtime error '800a01b6'
    Object doesn't support this property or method: 'StyleSheetPath'
     
    Also, the following edit in a CSS has no effect...
     
    .editBox {  overflow:hidden; }

    Please advise if I am mistaken.
  •  11-08-2011, 5:19 PM 71236 in reply to 71235

    Re: Set fixed size of cutesoft text area

    Please use the following property:
     
    Editor.EditorWysiwygModeCss Property.
     

    Specifies the location of the style sheet that will be used by the editable area. Multiple Style Sheets are supported. Example EditorWysiwygModeCss="example.css,/default.css"


    Example Code 

          <%
               Dim editor
               Set editor = New CuteEditor
               editor.ID = "Editor1"
               'Specifies the location of the style sheet that will be used by the editable area. 
               editor.EditorWysiwygModeCss = "example.css,/default.css"
               editor.Text = "Hello World"
               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

  •  11-08-2011, 5:57 PM 71238 in reply to 71236

    Re: Set fixed size of cutesoft text area

    This is not working for me yet.
     
     I have tried using .editBox and .editbox (case sensitivity?)
     
    .editBox
    {
        overflow:hidden;
    }
     
    I have also tried using...
    editor.EditorWysiwygModeCss = "local.css" 
    and...
    editor.EditorWysiwygModeCss = "/folder/example.css" 
  •  11-09-2011, 9:39 AM 71296 in reply to 71238

    Re: Set fixed size of cutesoft text area

    Hi WilliamK,
     
    This property works fine for me.
     
    My test page
     
    <!-- #include file = "cuteeditor_files/include_CuteEditor.asp" -->
    <html>
    <head>
        <title>class example</title>
    </head>
    <body>
        <form name="theForm" method="post">
            <div>
                <%   
           Dim editor   
           Set editor = New CuteEditor   
           editor.ID = "Editor1"  
           editor.Text = "<span class='redText'>Hello World</span>"  
           editor.EditorWysiwygModeCss = "asp.css"
           editor.Draw()   
                %>
            </div>
     
        </form>
    </body>
    </html>
     
    asp.css
     
    .redText
    {
        background-color: Red;
    }
     
    Two files deploy into the root of my editor site.
     
    Regards,
     
    Ken
  •  11-09-2011, 6:15 PM 71305 in reply to 71296

    Re: Set fixed size of cutesoft text area

    This is weird because I don't get anything like that all, so I am wondering where the conflict is...
     
    Dim editor
        Set editor = New CuteEditor
        editor.ID = "Editor1"
        editor.ConfigurationPath = "/editor/editor_files/configuration/autoconfigure/cover_designer.config"
        editor.Width = 314
        editor.Height = 652
        editor.ShowWordCount = false
        editor.ShowTagSelector = false
        editor.EditorWysiwygModeCss = "local.css"
        editor.EditCompleteDocument=true
        
        editor.Text = "<span class='boldgreen'>" & strCoverPage & "</span>"

        editor.Draw()
     
    I tried using a CSS placed in all possible locations and get no change to the loaded text.  tested in IE9, Firefox7 and Chrome15
  •  11-10-2011, 6:52 AM 71313 in reply to 71305

    Re: Set fixed size of cutesoft text area

    Hi WilliamK,
     
    Try remove this setting  editor.EditCompleteDocument=true
     
    Regards,
     
    Ken
  •  11-10-2011, 8:30 AM 71315 in reply to 71313

    Re: Set fixed size of cutesoft text area

    Ah, but that was recommended for being able to set page colour.
View as RSS news feed in XML