CHAR(13) + CHAR(10) showing as plain text in Editor

2 posts, 0 answers
  1. jlj30
    jlj30 avatar
    102 posts
    Member since:
    Jan 2011

    Posted 07 Feb 2014 Link to this post


    Don't hold me to this, but this "may" have started after our recent upgrade to 2013.3.1324.45.

    When I enter text and hit the Enter/Return key I get the expected appearance in the Design view, like this:

    First line
    Second line
    Third line

    When I subsequently save the record and reopen it, I see:

    First lineCHAR(13) + CHAR(10) Second lineCHAR(13) + CHAR(10) Third line

    in all 3 modes (Design, HTML and Preview).

    Here's the RadEditor declaration.  By the way, we have made some minor changes to the Vista skin, but the problem persists even if I change EnableEmbeddedSkins to "true".

    <telerik:RadEditor EnableEmbeddedSkins="false" Skin="Vista" ID="edtAnsRichText" runat="server"<br>                                                    Content='<%# Bind("AnswerText") %>' Width="450px" Height="200px" ToolTip="This is what the user will actually see when they take the questionnaire"><br>                                                    <Tools><br>                                                <telerik:EditorToolGroup Tag="MainToolbar"><br>                                                    <telerik:EditorSplitButton Name="Undo"><br>                                                    </telerik:EditorSplitButton><br>                                                    <telerik:EditorSplitButton Name="Redo"><br>                                                    </telerik:EditorSplitButton><br>                                                    <telerik:EditorSeparator /><br>                                                    <telerik:EditorTool Name="Cut" /><br>                                                    <telerik:EditorTool Name="Copy" /><br>                                                    <telerik:EditorTool Name="Paste" ShortCut="CTRL+V" /><br>                                                    <telerik:EditorTool Name="FormatStripper" /><br>                                                    <telerik:EditorTool Name="PasteStrip" /><br>                                                </telerik:EditorToolGroup><br>                                                <telerik:EditorToolGroup Tag="Formatting"><br>                                                    <telerik:EditorTool Name="Bold" /><br>                                                    <telerik:EditorTool Name="Italic" /><br>                                                    <telerik:EditorTool Name="Underline" /><br>                                                    <telerik:EditorSeparator /><br>                                                    <telerik:EditorSplitButton Name="ForeColor"><br>                                                    </telerik:EditorSplitButton><br>                                                    <telerik:EditorSplitButton Name="BackColor"><br>                                                    </telerik:EditorSplitButton><br>                                                    <telerik:EditorSeparator /><br>                                                    <telerik:EditorDropDown Name="FontName"><br>                                                    </telerik:EditorDropDown><br>                                                    <telerik:EditorDropDown Name="FontSize"><br>                                                    </telerik:EditorDropDown><br>                                                </telerik:EditorToolGroup><br>                                                <telerik:EditorToolGroup Tag="Alignment"><br>                                                    <telerik:EditorTool Name="Indent" /><br>                                                    <telerik:EditorTool Name="Outdent" /><br>                                                    <telerik:EditorTool Name="JustifyLeft" /><br>                                                    <telerik:EditorTool Name="JustifyCenter" /><br>                                                    <telerik:EditorTool Name="JustifyRight" /><br>                                                    <telerik:EditorTool Name="JustifyFull" /><br>                                                </telerik:EditorToolGroup><br>                                                <telerik:EditorToolGroup Tag="Tables"><br>                                                    <telerik:EditorTool Name="InsertTable" /><br>                                                    <telerik:EditorTool Name="ToggleTableBorder" /><br>                                                </telerik:EditorToolGroup><br>                                                <telerik:EditorToolGroup Tag="Lists"><br>                                                    <telerik:EditorTool Name="InsertUnorderedList" /><br>                                                    <telerik:EditorTool Name="InsertOrderedList" /><br>                                                    <telerik:EditorTool Name="InsertHorizontalRule" /><br>                                                </telerik:EditorToolGroup><br>                                                <telerik:EditorToolGroup Tag="ImagesAndLinks"><br>                                                    <telerik:EditorSeparator /><br>                                                    <telerik:EditorTool Name="InsertLink" /><br>                                                    <telerik:EditorTool Name="Unlink" /><br>                                                </telerik:EditorToolGroup><br>                                                <telerik:EditorToolGroup Tag="Spell"><br>                                                    <telerik:EditorTool Name="AjaxSpellCheck" /><br>                                                </telerik:EditorToolGroup><br>                                            </Tools><br>                                                </telerik:RadEditor>

    Any suggestions on how to debug/resolve this issue?

    Thanks in advance.

  2. Ianko
    Ianko avatar
    1955 posts

    Posted 12 Feb 2014 Link to this post

    Hello Jim,

    The described behavior is not reproducible locally. You can test the saving to database functionality with this online example and follow it for your project.

    The provided configuration does not seam to lead to any unexpected behavior and I would suggest checking the saving to database logic about any issues leading to this side effect.

    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top