Turning off formatting in different order adds odd characters

4 posts, 1 answers
  1. Chuck
    Chuck avatar
    3 posts
    Member since:
    Jul 2014

    Posted 13 Oct 2014 Link to this post

    In the Rich Text editor, with NewLineMode="Br", if you add multiple lines of text with formatting toggled oddly across those lines :


    Question mark characters get inserted when the formatting is removed in an order different than added.  Example:

    If you enter a single line with formatting as follows:

    plain bold italicbold italic

    (italicbold meaning both are turned on - so you can see that we did bold on, <text>, italic on <text>, bold off <text>, italic off <text>
    This renders fine.

    But with MULTIPLE lines such as:

    plain
    bold
    italicbold
    italic
    plain

    What you GET is :

    plain
    bold
    italicbold
    ?italic
    plain

    The stored HTML for this ends up looking like:
    <P>plain <STRONG>bold <EM>italicbold </EM></STRONG><EM>italic </EM>plain<BR><BR>plain<BR><STRONG>bold<BR><EM>italicbold<BR>?</EM></STRONG><EM>italic<BR></EM>plain</P>

    You can see the ? being inserted after the <BR> tag after "italicbold"

    Skin settings:
    <nt:RichEdit runat="server" SkinId="SimpleText" Width="700px" Height="240px"
        EditModes="Design"  EnableEmbeddedSkins="false" Skin="Ciena" EnableEmbeddedBaseStylesheet="true" ContentFilters="RemoveScripts"
        StripFormattingOptions="Css,MSWordRemoveAll" ExternalDialogsPath="~/EditorDialogs" NewLineMode="Br"
        EnableAjaxSkinRendering="true" ToolsFile="~/App_Data/RadEdit/SimpleTools.xml">
    </nt:RichEdit>

    Is there some setting I need to change to fix this?  Or is this a bug in the control?
  2. Answer
    Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 14 Oct 2014 Link to this post

    Hello Chuck,

    In this feedback portal item is reported a similar behavior that is already logged as a bug. I suggest testing if the provided workaround resolves the issue on your end.

    Regards,
    Ianko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Chuck
    Chuck avatar
    3 posts
    Member since:
    Jul 2014

    Posted 14 Oct 2014 in reply to Ianko Link to this post

    Thanks very much, we shall try this.
  5. Chuck
    Chuck avatar
    3 posts
    Member since:
    Jul 2014

    Posted 14 Oct 2014 in reply to Chuck Link to this post

    Success!  Thank you!
Back to Top