problems storing html from/to db with cute editor

Last post 07-07-2005, 12:55 AM by JCollum. 4 replies.
Sort Posts: Previous Next
  •  07-01-2005, 7:25 PM 8278

    problems storing html from/to db with cute editor

    I'm trying to store HTML text to/from a backing store with Cute Editor as my online editor. I'm having this issue where the data in the backing store is OK, and the data that gets stored in the editor seems Ok, but the output on screen is messed up. I've run into this before but have no idea what I did to resolve it.
     
    Here's the breakdown:

    Text in backing store:
    "<p>Tesxt</p><p></p><p><hr /><hr /><hr /><p></p></p>"

    HTML decoded text assigned to editor (editor.Text = Server.HtmlDecode(newsletterData[0]);) :
    "<p>Tesxt</p><p></p><p><hr /><hr /><hr /><p></p></p>"

    As it appears in the editor on screen:
    #1p#2T#9#7xt#1/p#2#1p#2#1/p#2#1p#2#1hr /#2#1hr /#2#1hr /#2#1p#2#1/p#2#1/p#2
     
    Clearly something's getting boggled up here. I'm using v 4 0 0 7 of the editor.
  •  07-02-2005, 10:43 AM 8285 in reply to 8278

    Re: problems storing html from/to db with cute editor

    JCollum,
     
    It's strange. Please try the following solutions:
     
    Solution 1. Set Editor.EncodeHiddenValue Property to false.
     
    Editor.EncodeHiddenValue Property

    By default Cute Editor will encode the value in the Hidden field automatically. You can turn it off by setting this property to "false". If this property is set to false, ValidateRequest="false" in the page directive is required.

    Solution 2. Upgrade to the version 4.5.

    It's a free upgrade.

    http://cutesoft.net/Downloads/default.aspx

    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

  •  07-04-2005, 12:50 PM 8344 in reply to 8285

    Re: problems storing html from/to db with cute editor

    I've upgraded to 4.5 but I'm still seeing the same behavior. I didn't see Editor.EncodeHiddenValue in the property fields or in the design time editing.

    I do see this: UseHTMLEntities and it's set to True.
  •  07-05-2005, 11:04 AM 8359 in reply to 8344

    Re: problems storing html from/to db with cute editor

    It's strange. Please make sure you update the DLL references in your VS project and recompile your project.
     
    Can you try the following code?
     
    <%@ Page Language="C#"%> <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %> <html> <head> <title>ASP and ASP.NET WYSIWYG Editor - Default Configuration </title> <link rel="stylesheet" href="../example.css" type="text/css" /> </head> <body> <form runat="server"> <h2>Default Configuration</h2> <CE:Editor id="Editor1" EditorWysiwygModeCss="../example.css" EncodeHiddenValue="false" runat="server" ></CE:Editor><br /> </form> </body> </html>

    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-07-2005, 12:55 AM 8438 in reply to 8359

    Re: problems storing html from/to db with cute editor

    I got this fixed. The solution was to  delete the entire cutesoft_client directory in my application, delete the old dlls and place the new ones in. I'm not sure what was happening but it's working now. Thanks for the help.
View as RSS news feed in XML