This is a migrated thread and some comments may be shown as answers.

Editor in Windows 8 Metro app

3 Answers 90 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Adam Nelson
Top achievements
Rank 2
Adam Nelson asked on 18 Apr 2012, 06:13 PM
Hi,

I'm trying to use the kendo editor in a Windows 8 Metro (html, js, css) app and having issues,all i get is a white box that wont accept focus, and there is no toolbar.

There are no javascript errors and the page has references to all required js and css files. jQuery 1.7.2 and kendo.web.min

I also tried this in a new metro app based on the Blank Application template with the same results.

Is there something I am missing or is the editor not supported in a windows 8 metro app yet?

Thanks,

Adam

3 Answers, 1 is accepted

Sort by
0
Adam Nelson
Top achievements
Rank 2
answered on 18 Apr 2012, 06:35 PM
I lied, there was a javascript error: "An attempt was made and denied to insert dynamic HTML in the document"

I'm guessing this is from the increased security built into windows 8 for apps.

Any workarounds?
0
Alex Gyoshev
Telerik team
answered on 19 Apr 2012, 03:30 PM
Hello Adam,

We have not yet researched the possible work-arounds of the kendo editor in Windows 8, and thus have not claimed that we support it. The error that you experience is caused by the dynamic iframe that is being generated by the widget, but we have not developed a work around at this moment. If you intend to pursue a work-around on your own, consider the following MSDN article: Making HTML safer: details for toStaticHTML.

Regards,
Alex Gyoshev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Adam Nelson
Top achievements
Rank 2
answered on 19 Apr 2012, 04:56 PM
Thanks for the reply.

For the time being, I went with a contenteditable div and implemented some basic formatting actions.

toStaticHtml does not appear to support iFrames, but that article did lead me to this page:  HTML, CSS, and JavaScript features and differences. There a workaround is shown to bypass the security restriction using MSApp.execUnsafeLocalFunction.

I called $("#field").kendoEditor() inside execUnsafeLocalFunction and it did render the iframe and all the toolbars, there are still issues though as selecting content within the iframe wasnt working.


Tags
Editor
Asked by
Adam Nelson
Top achievements
Rank 2
Answers by
Adam Nelson
Top achievements
Rank 2
Alex Gyoshev
Telerik team
Share this question
or