Skip to content

Ensure instance.document exists - #55

Open
dazzhands wants to merge 1 commit into
esvit:masterfrom
dazzhands:patch-1
Open

Ensure instance.document exists#55
dazzhands wants to merge 1 commit into
esvit:masterfrom
dazzhands:patch-1

Conversation

@dazzhands

Copy link
Copy Markdown

If ckeditor is started in source view mode (e.g. startupMode: 'source' in $scope.editorOptions), calling instance.document.on('keyup') will throw an exception because instance.document is undefined. In this case, it's better to set a listener on instance itself.

If ckeditor is started in source view mode (.e.g 'startupMode: 'source'" in $scope.editorOptions), calling instance.document.on('keyup') will
throw an exception because instance.document is undefined. In this case, it's better to set a listener on instance itself.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant