knockout.js - Durandal JS knockout-kendo kendoGrid -


good afternoon,

i'm trying kendoeditor knockout-kendo project (https://github.com/kendo-labs/knockout-kendo/) work, keeps throwing error 'uncaught typeerror: cannot read property 'body' of null'.

after lot of debugging got following lines of code (this code taken directly kendo.web.js):

iframe = $("<iframe />", { src: 'javascript:""', frameborder: "0" })     .css("display", "")     .addclass("k-content")     .insertbefore(textarea)[0];  wnd = iframe.contentwindow || iframe; doc = wnd.document || iframe.contentdocument;  doc.open(); doc.write('stripped readability'); doc.close(); 

in here trying create iframe used in editor. see source on (http://demos.kendoui.com/web/editor/index.html) example. however, iframe.contentwindow, iframe.document , iframe.contentdocument null. logically, code fails when trying doc.open(); , results in aforementioned exception.

after bit of searching stackoverflow came following: why iframe.contentwindow == null?. there seems problem readiness of document.

does has idea on how solve this? or has experience durandaljs (not new v2) , knockout-kendo?

i using durandal js 1.2.0.

thanks in advance.

edit

script references jquery, knockout , kendo ui , knockout-kendo done via mvc bundle.config.

kendoeditor initialization done via:

<textarea id="emailtemplate" data-bind="kendoeditor: content"></textarea> 


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -