Cute editor ignoring editor.Height and editor.Width attributes

Last post 08-19-2005, 10:33 AM by e-spike. 4 replies.
Sort Posts: Previous Next
  •  08-17-2005, 6:14 AM 9674

    Cute editor ignoring editor.Height and editor.Width attributes

    We have an editor running which we copied exactly from one of our sites to our development box to work with. Since the move in the original version the editor used to read the height and width settings and display at these sizes correctly. Now if the height is set to an integer, the editor displays with no white typing space at all, and it is only when the attribute is left blank that the editor displays the white space area (to its default size which is too large for us).
     
    Where are we going wrong? Our editor calling code is as follows:
     
    dim iWidth, iHeight, strCuteDisable
    		dim content
    		content = fldText								
    		if isNull(content) then content = " "	
    		'Response.Write "Con>" & len(content) & "<br>"
    				
    		iWidth = 675
    		iHeight = 200
    			
    		Dim editor
    		Set editor = New CuteEditor
    
    		editor.ID = "Editor1"
    		editor.Text = content
    		'editor.FilesPath = "CuteEditor_Files"
    		editor.FilesPath = "CuteSoft/CuteEditor_Files"
    		editor.ImageGalleryPath = "/CDATA/Community" & session("CommunityId") & "/Cutefiles/"
    		editor.MaxImageSize = 1000
    		editor.FontFacesList = "Arial,Arial Black,Arial Narrow,Comic Sans MS,Courier,Courier New,Georgia,Impact,MS Sans Serif,Tahoma,Times New Roman,Trebuchet MS,Verdana"
    		editor.FontSizesList = "1,2,3,4,5,6,7"
    		editor.AutoConfigure = "Default"
    		if session("CuteConfig") = "All" then
    			editor.AutoConfigure = "EnableAll"
    			iHeight = 400
    		else
    			editor.Template = strButtons
    		end if
    		
    		if session("CodeSnippet") = "Y" then
    			editor.CodeSnippetDropDownMenuNames = session("CodeSnippetDropDownMenuNames")								
    			editor.CodeSnippetDropDownMenuList  = session("CodeSnippetDropDownMenuList")
    			session("CodeSnippet") = "N"
    		end if	
    		
    		strCuteDisable = session("CuteDisable")
    		if len(strCuteDisable) > 0 then
    			editor.DisableItemList = strCuteDisable
    			session("CuteDisable") = ""
    		end if				
    
            editor.Width = iHeight 
            editor.Width = iWidth 
    		editor.Height = iHeight
    		editor.EditorBodyStyle = "table { font:normal 12px arial; }"
    		editor.ThemeType="officexp"
    		editor.EditorWysiwygModeCss = "asp.css"
    		editor.Draw()
    

    Also has the tabindex control been built back into this version of cuteeditor - i checked a while ago and it was still missing

    thanks


    Rich Halliwell (SPIKE)
  •  08-17-2005, 10:15 AM 9681 in reply to 9674

    Re: Cute editor ignoring editor.Height and editor.Width attributes

    The editor.Width and editor. property should work.
     
    Demo is here:
     
     
    The demo is using the following code:

    <%
                dim content
                content = "<H1><FONT color=#2f4f4f>Customized Toolbar</FONT></H1>"
            
                Dim editor
                Set editor = New CuteEditor
                
                editor.ID = "Editor1"
                editor.Text = content
                editor.FilesPath = "CuteEditor_Files"
                editor.ShowBottomBar = false
                editor.Template="G_start,Bold,Italic,Underline,Separator,JustifyLeft,JustifyCenter,JustifyRight,G_end"
                
                editor.Width = 600
                'editor.Width = 740
                'editor.Height = 200
                editor.Draw()
                
                ' Request.Form(ID) access from other page
            
                %>


    Can you tell me which version of Cute Editor are you using?
     
     

    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

  •  08-17-2005, 2:20 PM 9698 in reply to 9681

    Re: Cute editor ignoring editor.Height and editor.Width attributes

    I think its version 4.2 but i'm not totally sure where to find the version number in the source code.
     
    Can you try dropping my code into a copy of cuteeditor on your side and seeing what's going wrong. Should i just overwrite the source files with version 4.2 again?
     
    Rich
  •  08-17-2005, 2:22 PM 9699 in reply to 9698

    Re: Cute editor ignoring editor.Height and editor.Width attributes

    Further to that post - it works and sizes correctly in firefox - but shows with a grey background not a white background - if that helps at all
     
    rich
  •  08-19-2005, 10:33 AM 9773 in reply to 9699

    Re: Cute editor ignoring editor.Height and editor.Width attributes

    ok fixed it.  

    Basically a document cannot contain this:

    <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional/EN” "http://www.w3.org/TR/html4/loose.dtd">

    what should the document contain instead of that. I'm not entirely sure what it does but i think it says it conforms to the w3 conventions or something
View as RSS news feed in XML