using in place of textarea form element

Last post 01-10-2005, 11:26 PM by Adam. 2 replies.
Sort Posts: Previous Next
  •  01-10-2005, 4:07 PM 3362

    using in place of textarea form element

    Well.... it's me, new guy [again]. Hopefully I don't find the answer right after I post like last time.
     
    I have an existing form with a textarea in place right now. I want to simply replace the textarea with the cuteeditor, and not have to change the app (the form is simply POSTed right now).

    I should clarify that I have deployed the editor with no problem, and it draws in the page, I am able to manipulate HTML, etc... just need to know the quick way to submit it with the other form fields...
     
    What is the easiest way to get there? Anyone have some sample code they would share?
     
    Thanks very much.
  •  01-10-2005, 7:19 PM 3369 in reply to 3362

    Re: using in place of textarea form element

    I assume this should be straightforward functionality, as the second paragraph of the product info page states:
     
    It enables ASP.NET Web developers to replace the Textarea in your existing content management system with a powerful, but easy to use WYSIWYG HTML editing component.
  •  01-10-2005, 11:26 PM 3376 in reply to 3362

    Re: using in place of textarea form element

     
    Let use the original IbuySpy portal as an example.

    In the following example we replace a textbox control in the EditHtml.aspx into a rich text editor.

     
    1.deploying the CuteEditor.dll assembly and license file

    Copy the CuteEditor.dll and the CuteEditor.lic to the \bin directory for the web application that uses the CuteEditor. 

    If you need the spell checker function, you need to copy the NetSpell.SpellChecker.dll and the dictionaries files to the \bin directory as well.

    Then modify your web.config file and specify the NetSpell dictionary folder:

    <appSettings>
        <add key="DictionaryFolder" value="bin"/>
    </appSettings>



    2. Deploying the CuteEditor Client files

    The "CuteSoft_Client/CuteEditor" folder and all file it contains (you can find in the download package) should be deployed to http://{your site}/{your application}/CuteSoft_Client/CuteEditor/ on your web site.

    If you want to deploy the CuteEditor Client file to a different location, you will have to make sure that you set your editor FilesPath property correctly. The control expects to find the all the files and images in the files directory specified by the control FilesPath property.
     

    3. Open the IBuySpy Project and edit the file "EditHtml.aspx" in the "./DesktopModules" folder.


    Add the CuteEditor Register directive at the top:

    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
     
    4. Add the CuteEditor tags in the body of the WebForm:
     
       Replace the textbox:

       <asp:TextBox id="DesktopText" columns="75" width="650" rows="12" textmode="multiline" runat="server" />

       With CuteEditor:                                            

      <CE:Editor id="DesktopText " runat="server"></CE:Editor>

    Hope this example helps.

    Keep me posted.
     

    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