New to Telerik UI for Blazor? Download free 30-day trial

Fix the height of the Editor in Iframe mode in Safari


Product Editor for Blazor


I am using the Telerik UI for Blazor Editor and the edit mode is set to Iframe. I would like to editor to take all the available height and thus set its Height parameter to 100%. When I run it under the Safari browser the height of the content area is not applied correctly.


The issue stems from the Iframe support of the Safari browser and especially when the height is set in percentage. The solution is to use CSS and set the height of content area. Depending on the desired UI of the application the rules should change from the one set in the example below.

Set the height of the content area of the Editor

@*Use CSS to set the height of the content area*@

    .myEditor .k-editor-content .k-iframe {
        height: 100%;

<div style="height:600px; width:600px">

    <TelerikEditor @bind-Value="@Val1" EditMode="@EditorEditMode.Iframe" Class="myEditor"></TelerikEditor>

@code {
    public string Val1 { get; set; } = "<p>I am in an iframe</p>";
In this article