This is a migrated thread and some comments may be shown as answers.

Turning off formatting in different order adds odd characters

3 Answers 55 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Chuck
Top achievements
Rank 1
Chuck asked on 13 Oct 2014, 02:58 PM
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?

3 Answers, 1 is accepted

Sort by
0
Accepted
Ianko
Telerik team
answered on 14 Oct 2014, 07:32 AM
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.

 
0
Chuck
Top achievements
Rank 1
answered on 14 Oct 2014, 11:57 AM
Thanks very much, we shall try this.
0
Chuck
Top achievements
Rank 1
answered on 14 Oct 2014, 01:11 PM
Success!  Thank you!
Tags
Editor
Asked by
Chuck
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Chuck
Top achievements
Rank 1
Share this question
or