提交 eaaa78db 编写于 作者: D devil

编辑器支持iframe

上级 0149ba3e
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
{{include file="public/menu" /}} {{include file="public/menu" /}}
<!-- right content --> <!-- right content -->
<iframe id="ifcontent" src="{{:MyUrl('admin/index/init')}}"></iframe> <iframe id="ifcontent" src="{{:MyUrl('admin/index/init')}}" width="100%" height="100%"></iframe>
<!-- right content end --> <!-- right content end -->
</div> </div>
......
{{include file="public/header" /}} {{include file="public/header" /}}
<!-- right content --> <!-- right content -->
<iframe id="ifcontent" src="{{$store_url}}"></iframe> <iframe src="{{$store_url}}" width="100%" height="100%"></iframe>
<!-- right content end --> <!-- right content end -->
<!-- footer --> <!-- footer -->
......
...@@ -62,7 +62,7 @@ form.am-form .am-form-group-refreshing, .plug-file-upload-view, .content-app-ite ...@@ -62,7 +62,7 @@ form.am-form .am-form-group-refreshing, .plug-file-upload-view, .content-app-ite
/** /**
* iframe * iframe
*/ */
iframe { width: 100%; height: 100%; border: 0; } iframe { border: 0; }
/** /**
......
...@@ -781,7 +781,7 @@ function ModalLoad(url, title, tag, class_tag) ...@@ -781,7 +781,7 @@ function ModalLoad(url, title, tag, class_tag)
html += '<h4 class="am-popup-title">'+(title || '温馨提示')+'</h4>'; html += '<h4 class="am-popup-title">'+(title || '温馨提示')+'</h4>';
html += '<span data-am-modal-close class="am-close">&times;</span>'; html += '<span data-am-modal-close class="am-close">&times;</span>';
html += '</div>'; html += '</div>';
html += '<iframe src="'+url+'"></iframe>'; html += '<iframe src="'+url+'" width="100%" height="100%"></iframe>';
html += '</div>'; html += '</div>';
html += '</div>'; html += '</div>';
$('body').append(html); $('body').append(html);
......
...@@ -367,6 +367,7 @@ ...@@ -367,6 +367,7 @@
,outputXssFilter: true ,outputXssFilter: true
// xss过滤白名单 名单来源: https://raw.githubusercontent.com/leizongmin/js-xss/master/lib/default.js // xss过滤白名单 名单来源: https://raw.githubusercontent.com/leizongmin/js-xss/master/lib/default.js
,whitList: { ,whitList: {
iframe: ['src', 'width', 'height', 'border', 'alt', 'style', 'class', 'frameborder', 'align', 'longdesc', 'marginheight', 'marginwidth', 'name', 'sandbox', 'scrolling', 'seamless', 'srcdoc'],
a: ['target', 'href', 'title', 'class', 'style'], a: ['target', 'href', 'title', 'class', 'style'],
abbr: ['title', 'class', 'style'], abbr: ['title', 'class', 'style'],
address: ['class', 'style'], address: ['class', 'style'],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册