Opened 12 years ago
Last modified 11 years ago
#10823 closed Bug
Link plugin fails when applied to non-editable content — at Initial Version
Reported by: | Piotrek Koszuliński | Owned by: | |
---|---|---|---|
Priority: | Must have (possibly next milestone) | Milestone: | CKEditor 4.3 |
Component: | General | Version: | |
Keywords: | Cc: |
Description
var range = selection.getRanges( 1 )[ 0 ]; // Use link URL as text with a collapsed cursor. if ( range.collapsed ) {
These lines cause problem, because ranges
is an empty array if only widget (non-editable content) is selected.