开发者

telerik editor with iframe

开发者 https://www.devze.com 2023-03-14 11:50 出处:网络
I\'m using Telerik Editor, with following, <div class=\"Telerik开发者_如何学Python-Editor\">

I'm using Telerik Editor, with following,

<div class="Telerik开发者_如何学Python-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" /> 


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号