Search code examples
teleriktelerik-editor

telerik editor with iframe


I'm using Telerik Editor, with following,

<div class="Telerik-Editor">
            @{
       Html.Telerik().EditorFor(model => model.Description).Name("Editor").FileBrowser(settings => settings
           .Browse("Browse", "ImageBrowser")
           ).Render();
        }
            @Html.ValidationMessageFor(model => model.Description)
        </div>

doing only above, it is working, (Editor is working) , but If I add iframe , then Editor is disabled. Anybody getting this error/bug?

        <iframe src="mysomeurl" /> 

Solution

  • As I replied in the Telerik forum thread which you opened you need to close the iframe like this:

    <iframe src="http://www.example.com"></iframe>
    

    Otherwise the browser expects the closing iframe tag and stops parsing the page any further.