Bug Report B96796
Visible to All Users

ASPxHtmlEditor doesn't save changes made to its HTML content, when located within the UpdatePanel (reproducible in FireFox, Safari, Opera)

created 17 years ago

(please see attached project)
If I put an AspxHtmlEditor inside Ajax, getting the HTML value at postback is emtpy. This goes only for FireFox not Ms IE.
If its a bug in AspxHtmlEditor, I need a fix asap! :o)
Morten
Steps to Reproduce:
All works fine in MsIE … FireFox (Mozialla) causes the problem below…

  1. Create new web project
  2. In the default page, put Ajax Script Manager and an Ajax Update Panel
  3. Put an AspxHtmlEditor inside the update panel
  4. Enter som text in the AspxHtmlEditor
  5. Put a button and on the click event, read the AspxHtmlEditor's HTML value
    Actual Results:
    AspxHtmlEditor's HTML value is "" (empty)
    Expected Results:
    The text you entered in 4. (under strps to produce)
Show previous comments (1)
DevExpress Support Team 16 years ago

    Hi!
    We've corrected the previous workaround.
    The correct code is the following:
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <script type="text/javascript" language="javascript">
                function OnClickSubmitButton() {
                    htmlEditor1.Synchronize();
                }
            </script>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <dxhe:ASPxHtmlEditor ID="ASPxHtmlEditor1" runat="server" ClientInstanceName="htmlEditor1">
                        <SettingsImageUpload>
                            <ValidationSettings AllowedContentTypes="image/jpeg,image/pjpeg,image/gif,image/png,image/x-png">
                            </ValidationSettings>
                        </SettingsImageUpload>
                    </dxhe:ASPxHtmlEditor>
                    <br/>
                    <dxe:ASPxButton ID="ASPxButton1" runat="server" Text="ASPxButton">
                        <ClientSideEvents Click="function(s, e) { OnClickSubmitButton(); }" />
                    </dxe:ASPxButton>
                </ContentTemplate>
            </asp:UpdatePanel>
    Thanks,
    Andrew R

      4 months for a fix???

      Serge (DevExpress Support) 16 years ago

        Dear Morten,
        We apologize, it took us significant time to provide a complete resolution to this problem. However, it was rather complex and depended on peculiarities of different web browsers. Please try the Public Fix we've just published, and let us know if the new libraries help.
        Thanks,
        Serge

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.