Ctrl + V does not strip all formatting

3 posts, 0 answers
  1. Sangeetha
    Sangeetha avatar
    4 posts
    Member since:
    Mar 2015

    Posted 17 Mar 2015 Link to this post

    I have a RadEditor with StripFormattingOptions="AllExceptNewLines". Once the editor is loaded, if the user does a mouse-click followed by CTRL+V to paste html content, the html formatting is stripped successfully ONLY if there is a certain amount of time space between mouse-click and CTRL+V.
    If the time gap is less, the following javascript exception is thrown and the formatting is not stripped.

    Line: 2313
    Error: 'parentNode' is null or not an object

    We have users who do a quick Mouse+Click followed by CTRL+V and hence we see this bug quite often.
    Please let me know if you have a workaround for this.
    Any help is appreciated.

  2. Sangeetha
    Sangeetha avatar
    4 posts
    Member since:
    Mar 2015

    Posted 18 Mar 2015 Link to this post

    Some more info on this bug:

    If ContentAreaMode=”IFrame”  - there is no error 

    If ContentAreaModel=”Div” - you workaround this error if you set default Content to be “<p>&nbsp;</p>”
  3. DevCraft R3 2016 release webinar banner
  4. Ianko
    Ianko avatar
    1507 posts

    Posted 20 Mar 2015 Link to this post

    Hi Sangeetha,

    I tried to reproduce the same issue with this online demo (http://demos.telerik.com/aspnet-ajax/editor/examples/contentareamodediv/defaultcs.aspx), but to no avail. Could you please test on your end with the demo, and get back with exact steps to reproduce?


    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.

Back to Top