ZWSP inserted into html in chrome

2 posts, 0 answers
  1. Dave
    Dave avatar
    38 posts
    Member since:
    Jul 2007

    Posted 07 May 2013 Link to this post

    for v2013.1.220.40

    While using the RadEditor in Chrome, a zero width space (​) is inserted under some circumstances. For example, starting with a blank editor, if you click into the editor, change the font size, click back into the editor and type "test", a zwsp is inserted between the end of the font tag and "test". The problem is when the content is saved to the database, it is saved as a question mark, which is far from ideal. I do not experience this behavior in IE. 

    Is there a way to prevent the insertion of the zwsp character?
  2. Niko
    Niko avatar
    383 posts

    Posted 10 May 2013 Link to this post

    Hello David,

    The zero-width space symbol is used in the Editor in order to work around browser issues in the Chrome browser concerning the selection of empty nodes. That is the reason why the ZWSP is used when using the font size with an empty selection.
    There is a way to work around this issue. You can create a custom filter to remove the ZWSP. Here is a demo that shows how to use custom filters - Your filter will traverse all the nodes in the content area and will replace all occurrences of the zero-width space char.

    Hope this helps.

    the Telerik team
    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 RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. DevCraft R3 2016 release webinar banner
Back to Top