编辑器支持iframe

feat/task1-c-wallet
devil 2020-02-15 23:32:22 +08:00
parent 0149ba3e76
commit eaaa78db2c
5 changed files with 5 additions and 4 deletions

View File

@ -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>

View File

@ -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 -->

View File

@ -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; }
/**

View File

@ -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">&times;</span>';
html += '</div>';
html += '<iframe src="'+url+'"></iframe>';
html += '<iframe src="'+url+'" width="100%" height="100%"></iframe>';
html += '</div>';
html += '</div>';
$('body').append(html);

View File

@ -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'],