kendo-labs / knockout-kendo

A project to create a robust set of Knockout.js bindings for the Kendo UI widgets.
http://kendo-labs.github.com/knockout-kendo/
273 stars 144 forks source link

kendoEditor binding not functional in Chrome 43 #190

Open jumpinjackie opened 9 years ago

jumpinjackie commented 9 years ago

Using Chrome 43 on windows

If you go to the kendo editor example: http://kendo-labs.github.io/knockout-kendo/web/Editor.html

The actual text sites outside of the editor and all the editor actions cause the following JS error:

Cannot use 'in' operator to search for 'getSelection' in undefined
    _.selectionFromWindow   @   kendo.all.min.js:27
    _.selectionFromDocument @   kendo.all.min.js:27
    s.extend.getSelection   @   kendo.all.min.js:26
    s.extend.getRange   @   kendo.all.min.js:26
    s.extend.exec   @   kendo.all.min.js:26
    (anonymous function)    @   kendo.all.min.js:29
    b.event.dispatch    @   jquery.min.js:3
    v.handle    @   jquery.min.js:3
rniemeyer commented 9 years ago

Strange it works fine with the same files in a jsFiddle: http://jsfiddle.net/rniemeyer/w23vgxku/ . Something is happening in the doc site though.

kazeshini178 commented 8 years ago

I get the same issue running in Chrome Version 49.0.2623.112 m & Firefox. When inspecting element I noticed it doesnt add the contenteditable=true attribute to the body of the iFrame, like in the jsfiddle.

Any suggestions?

kazeshini178 commented 8 years ago

Upon investigating further i found the issue only occurs when used in a jQuery Dialog. When initialized directly on the view everything works fine. I suspect it has something to do with the initialization happening while the dialog is still hidden.