Closed woody-li closed 1 year ago
It seems like crashed at https://github.com/ckeditor/ckeditor4/blob/master/core/editable.js#L635.
The Selection is none, Range isn't a editable element and its offset (start, end) both 0. After comment out it or wrap a setTimeout to it will works well.
// update Others addRange function call maybe cause crash also.
I found a chromium issue, not sure whether it relevant. https://bugs.chromium.org/p/chromium/issues/detail?id=138439
I can confirm the issue.
Confirmed that it's a Chromium issue. https://bugs.chromium.org/p/chromium/issues/detail?id=1384470
Type of report
Bug
Provide detailed reproduction steps (if any)
Created a widget named "math", and generate a math SVG image. After set some font style, save the content. Displays the content by setData, then focus into editor, the browser crashed.
Example content data
Other details