We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
希望Iframe预览默认给Iframe加上allowfullscreen的Attribute。或者后台设置加个选项也行。
allowfullscreen
非常简单,<iframe allowfullscreen src="...">
<iframe allowfullscreen src="...">
目前的workaround是,在后台自定义内容中用js hook createElement方法,但这不是个好方法。
createElement
<script> document.createElement = function(create) { return function() { var ret = create.apply(this, arguments); if (ret.tagName.toLowerCase() === "iframe") { ret.setAttribute("allowfullscreen", ""); } return ret; }; }(document.createElement) </script>
No response
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
Please make sure of the following things
Description of the feature / 需求描述
希望Iframe预览默认给Iframe加上
allowfullscreen
的Attribute。或者后台设置加个选项也行。Suggested solution / 实现思路
非常简单,
<iframe allowfullscreen src="...">
目前的workaround是,在后台自定义内容中用js hook
createElement
方法,但这不是个好方法。Additional context / 附件
No response
The text was updated successfully, but these errors were encountered: