Unplanned
Last Updated: 06 Jan 2023 10:51 by Matthew
Matthew
Created on: 06 Jan 2023 10:51
Category: Editor
Type: Bug Report
1
Avoid Cannot read properties of null (reading 'nodeType') error when pasting content in Editor

Bug report

Content pasted from Outlook/Word might lead to throwing a 'Cannot read properties of null (reading 'nodeType')' error when pasted in Editor.

Reproduction of the problem

  1. Open the Dojo examples:
  1. Copy and paste the content above the Editor in the Editor

Current behavior

An error: Cannot read properties of null (reading 'nodeType') is thrown in the console

Expected/desired behavior

No error should be thrown when pasting content into the Editor

Note: The purpose of the issue is to avoid errors in the console not styling the content as list.

Workaround:

`paste: function(e){
e.html = e.html.replace(/MsoNormal/g, "");
e.html = e.html.replace(/mso/g, "");
}

Environment

  • Kendo UI version: 2022.3.1109
  • Browser: [all ]
0 comments