Telerik ASP.Net Core KendoEditor - fullscreen mode

1 Answer 139 Views
Editor
Ian
Top achievements
Rank 1
Ian asked on 27 Jan 2023, 09:31 AM | edited on 27 Jan 2023, 09:33 AM
I am using APS.Net Core Kendo Editor for a rich editor experience which works well.

I wish to enter fullscreen mode and have followed the guidance here ->

 https://docs.telerik.com/kendo-ui/knowledge-base/show-editor-in-full-screen

Running locally in Visual Studio this works perfectly. 

However, when i deploy the web app to Azure I fall fowl of Permissions Policy whereby I am required to allow "fullscreen" on 

any IFRAMES i.e.

<iframe allow="fullscreen"></iframe>


As the IFRAME is being created by Telerik using @(Html.Kendo().Editor()), how do I add 'allow="fullscreen"' to the IFRAME tag?

1 Answer, 1 is accepted

Sort by
0
Stoyan
Telerik team
answered on 31 Jan 2023, 01:19 PM

Hi Ian,

Thank you for providing a comprehensive explanation of the issue you are facing.

Currently the ASP.NET Core Editor doesn't support applying attributes to its iframe out-of-the-box.

For this reason I recommend using a jQuery selector to get the iframe upon initialization of the Editor and add the allow="fullscreen" attribute:

$(document).ready({
      $("iframe.k-content").attr("allow","fullscreen");
});

Give this approach a try and let me know how it works on your side.

Regards,
Stoyan
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Editor
Asked by
Ian
Top achievements
Rank 1
Answers by
Stoyan
Telerik team
Share this question
or