how to generate cute editor in the code without using the tag prefix cute editor????

Last post 07-24-2006, 7:48 PM by scheineden. 3 replies.
Sort Posts: Previous Next
  •  07-23-2006, 9:01 PM 21177

    how to generate cute editor in the code without using the tag prefix cute editor????

    Is it possible not to use the
    <CE:Editor .... > I mean using the tag prefix of CuteEditor.
     
    seems both asp and asp.net need to call this one.
    our problem was we compile all the html codes into dlls files
    therefore we actually do not have any separation page between presentation and behind code, all combines become one
     
    So we build all the html tags into classes....
    something like http.Response.write ("<html><body>") and so on
     
    Below is the sample code

    Dim re As New CuteEditor.Editor

    re.ID = "test"

    re.EditorWysiwygModeCss = "../example.css"

    re.ThemeType = CuteEditor.ThemeType.Office2003

    re.AutoConfigure = CuteEditor.AutoConfigure.Simple

    re.ActiveTab = CuteEditor.TabType.Edit

    re.BreakElement = CuteEditor.BreakElement.Div

    re.CodeViewTemplateItemList = "Save,Print,Cut,Copy,Paste,Find,ToFullPage,FromFullPage,SelectAll,SelectNone"
    now the difficult part is how to display the re object into html???
    I cant convert the editor to string HTML because of different type...
    anyone got any idea?
     
     
     
     
  •  07-24-2006, 2:12 PM 21201 in reply to 21177

    Re: how to generate cute editor in the code without using the tag prefix cute editor????

    scheineden,
     
    CuteEditor for .NET works as .NET server control. You have to register CuteEdtior on the top of your aspx pages.
     
    In CuteEditor for ASP, you have the option to use Editor.GetString Method.
     
     
    This function returns what the Draw function used to write to the response buffer as a string.

    Example Code

          <%
               Dim editor, content
               Set editor = New CuteEditor
               editor.ID = "Editor1"
               editor.Text = "Hello World"

               'returns what the Draw function used to write to the response buffer as a string.
               content = editor.GetString()
               Response.Write content
          %>
     

    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

  •  07-24-2006, 7:46 PM 21213 in reply to 21201

    Re: how to generate cute editor in the code without using the tag prefix cute editor????

    Hi Adam,
     
    Below is the sample code i try to do , if i put the codes like this, will the dll generates all the div toolbar, iframe and textarea it self based on the id given?
     
    Or I still need put the tag prefix CE Editor?
     
    Below code producing empty result 
    <%@ Page Language="vb"%>
    <%@ Import Namespace="CuteEditor" %>
    <html>
        <head>
           <title>ASP and ASP.NET WYSIWYG Editor - Default Configuration </title>
           <link rel="stylesheet" href="../example.css" type="text/css" />
        </head>
       <body>
           <%
             dim editor as new CuteEditor.Editor
            editor.ID = "Editor1"
          %>
       </body>
    </html>
     
  •  07-24-2006, 7:48 PM 21214 in reply to 21213

    Re: how to generate cute editor in the code without using the tag prefix cute editor????

    <%@ Page Language="vb"%>
    <%@ Import Namespace="CuteEditor" %>
    <%
             dim editor as new CuteEditor.Editor
            editor.ID = "Editor1"
     %>
    <html>
        <head>
           <title>ASP and ASP.NET WYSIWYG Editor - Default Configuration </title>
           <link rel="stylesheet" href="../example.css" type="text/css" />
        </head>
       <body>
       </body>
    </html>
     
     
    Second try which is also the same resulting an empty result
    Thx adam..
     
     
View as RSS news feed in XML