Opened 4 years ago

Last modified 2 years ago

#13620 confirmed Bug

insertElement and insertHtml fail if widget is first in editor (Chrome)

Reported by: Brandon Owned by:
Priority: Normal Milestone:
Component: General Version: 4.3
Keywords: Webkit Cc:

Description (last modified by Jakub Ś)

Steps to reproduce

(Simple demo attached)

  1. In Chrome, load editor with only a widget in it (or at least have a widget as first thing in the editor).
  2. Without selecting an insert point in the editor, try using insertHtml or insertElement. You can also try inserting widget which uses insertElement method - https://github.com/ckeditor/ckeditor-dev/blob/master/plugins/widget/plugin.js#L420

Expected result

The HTML should be inserted before the widget.

Actual result

Fails with error "Uncaught TypeError: Cannot read property 'checkReadOnly' of undefined"

Other details (browser, OS, CKEditor version, installed plugins)

Chrome 44.0.2403.125 | Windows 10/8.1 | CKE 4.5.1 | Plugins: Widget / Enhanced Image (any plugin that uses widget will do)

Attachments (1)

cke-bug.zip (333.6 KB) - added by Brandon 4 years ago.
Demo of Problem

Download all attachments as: .zip

Change History (3)

Changed 4 years ago by Brandon

Attachment: cke-bug.zip added

Demo of Problem

comment:1 Changed 2 years ago by Jakub Ś

Description: modified (diff)
Keywords: Webkit added
Status: newconfirmed
Version: 4.5.14.3

#14768 was marked as duplicate.

Problem can be reproduced from CKEditor 4.3.1 in Webkit browsers (both Safari & Chrome). In version 4.3.0 error is Cannot read property 'collapsed' of undefined

comment:2 Changed 2 years ago by Jakub Ś

Similar issues with 'checkReadOnly' can also be found in: #13314, #14809

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy