编辑器支持iframe
parent
0149ba3e76
commit
eaaa78db2c
|
|
@ -9,7 +9,7 @@
|
|||
{{include file="public/menu" /}}
|
||||
|
||||
<!-- 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 -->
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{{include file="public/header" /}}
|
||||
|
||||
<!-- right content -->
|
||||
<iframe id="ifcontent" src="{{$store_url}}"></iframe>
|
||||
<iframe src="{{$store_url}}" width="100%" height="100%"></iframe>
|
||||
<!-- right content end -->
|
||||
|
||||
<!-- footer -->
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ form.am-form .am-form-group-refreshing, .plug-file-upload-view, .content-app-ite
|
|||
/**
|
||||
* iframe
|
||||
*/
|
||||
iframe { width: 100%; height: 100%; border: 0; }
|
||||
iframe { border: 0; }
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -781,7 +781,7 @@ function ModalLoad(url, title, tag, class_tag)
|
|||
html += '<h4 class="am-popup-title">'+(title || '温馨提示')+'</h4>';
|
||||
html += '<span data-am-modal-close class="am-close">×</span>';
|
||||
html += '</div>';
|
||||
html += '<iframe src="'+url+'"></iframe>';
|
||||
html += '<iframe src="'+url+'" width="100%" height="100%"></iframe>';
|
||||
html += '</div>';
|
||||
html += '</div>';
|
||||
$('body').append(html);
|
||||
|
|
|
|||
|
|
@ -367,6 +367,7 @@
|
|||
,outputXssFilter: true
|
||||
// xss过滤白名单 名单来源: https://raw.githubusercontent.com/leizongmin/js-xss/master/lib/default.js
|
||||
,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'],
|
||||
abbr: ['title', 'class', 'style'],
|
||||
address: ['class', 'style'],
|
||||
|
|
|
|||
Loading…
Reference in New Issue