Skip to content

HtmlEditor crashes when pasting from Word #2383

@Anspitzen

Description

@Anspitzen

Describe the bug
When pasting a slightly bit more rows from a Word Document into a HtmlEditor the app/browsertab will go into deadlock

To Reproduce
Steps to reproduce the behavior:
Have a slightly larger Word document. Not big, just more than 2 pages. I set it up the following:

  1. I took the Source code of the RadzenHtmlEditor.razor.cs file. (the first 60 Lines were enough to get a significant lag of the whole UI, double and it did not react anymore, or only after several minutes blocking the whole App)

  2. Copy it to an empty word file. Like mentioned, 60 Lines are already heavy impact. In Word that is about 2(.5) pages

  3. Copy the resulting content of the word file to clipboard (CTRL+A; CTRL+C)

  4. Go to Demo

  5. Paste the contents of the Word document into the Editor

  6. App locks and not even F5 does clear it.

Expected behavior
The app doesn't lock and the text gets pasted

Desktop (please complete the following information):

  • Browser chrome

Additional context
Not even F5 is helping, the app is still in deadlock for the whole tab. You have to close the tab (so browser is terminating everything) and reopen the tab to get a refresh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions