最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

wp admin - How to prevent the editor from redirecting to website within iframe?

programmeradmin1浏览0评论

I have been trying to embed a website into a private page, and have tried out the "embed" and "iframe" tags, but as soon as I update the changes it redirects to the embedded site. I read more about the subject and found out that if I used the sandbox option, then I could prevent that from happening:

<iframe src="/" width="100%" height="650" name="disable-x-frame-options" sandbox="allow-forms allow-popups allow-pointer-lock allow-same-origin allow-scripts"></iframe>

Even though the page itself is stable and the iframe is working perfectly, the editor keeps redirecting, too quick for me to make any further changes to it. Is there any way of preventing the page's editor from doing this?

发布评论

评论列表(0)

  1. 暂无评论