Skip to content

Commit

Permalink
Merge branch 'master' of github.com:phpzlc/admin
Browse files Browse the repository at this point in the history
  • Loading branch information
jay committed Feb 2, 2021
2 parents f3b27fd + 1089f53 commit 572dd8b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions Bundle/Resources/public/ueditor/neditor.all.js
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -19449,6 +19449,7 @@ UE.plugins["autofloat"] = function() {
origalFloat = domUtils.getComputedStyle(toolbarBox, "position"),
origalLeft = domUtils.getComputedStyle(toolbarBox, "left");
toolbarBox.style.width = toolbarBox.offsetWidth + "px";
toolbarBox.style.height = toolbarBox.getBoundingClientRect().height + "px";
toolbarBox.style.zIndex = me.options.zIndex * 1 + 1;
toolbarBox.parentNode.insertBefore(placeHolder, toolbarBox);
if (LteIE6 || (quirks && browser.ie)) {
Expand Down Expand Up @@ -19524,7 +19525,14 @@ UE.plugins["autofloat"] = function() {
toolbarBox = me.ui.getDom("toolbarbox");
orgTop = getPosition(toolbarBox).top;
bakCssText = toolbarBox.style.cssText;
placeHolder.style.height = me.ui.getDom("iframeholder").offsetHeight + "px";
setTimeout(function() {
var height = me.ui.getDom("iframeholder").offsetHeight + toolbarBox.getBoundingClientRect().height;
if (!height) {
height = 640;
}
me.ui.getDom("iframeholder").style.height = height + "px";
placeHolder.style.height = height + "px";
}, 1000);
if (LteIE6) {
fixIE6FixedPos();
}
Expand Down Expand Up @@ -28468,7 +28476,7 @@ UE.ui = baidu.editor.ui = {};
popEl.className +=
" " + ANCHOR_CLASSES[(sideUp ? 1 : 0) * 2 + (sideLeft ? 1 : 0)];
if (this.editor) {
popEl.style.zIndex = this.editor.container.style.zIndex * 1 + 10;
popEl.style.zIndex = this.editor.container.style.zIndex * 1 + 1000;
baidu.editor.ui.uiUtils.getFixedLayer().style.zIndex =
popEl.style.zIndex - 1;
}
Expand Down Expand Up @@ -30460,7 +30468,7 @@ UE.ui = baidu.editor.ui = {};
//要高过编辑器的zindxe
this.editor.container.style.zIndex &&
(this.getDom().style.zIndex =
this.editor.container.style.zIndex * 1 + 10);
this.editor.container.style.zIndex * 1 + 1000);
this._hidden = false;
this.fireEvent("show");
baidu.editor.ui.uiUtils.getFixedLayer().style.zIndex =
Expand Down
2 changes: 1 addition & 1 deletion Bundle/Resources/views/base/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<script type="application/javascript" src="{{ admin_asset('bundles/phpzlcadmin/strategy/httpVueLoader.js') }}"></script>
<script type="application/javascript" src="{{ admin_asset('bundles/phpzlcadmin/strategy/component.js') }}?v=20201112"></script>
<script type="text/javascript" charset="utf-8" src="{{ admin_asset('bundles/phpzlcadmin/ueditor/neditor.config.js') }}?v=20201112"></script>
<script type="text/javascript" charset="utf-8" src="{{ admin_asset('bundles/phpzlcadmin/ueditor/neditor.all.min.js') }}?v=20201112"></script>
<script type="text/javascript" charset="utf-8" src="{{ admin_asset('bundles/phpzlcadmin/ueditor/neditor.all.js') }}?v=20201112"></script>
<!--建议手动加在语言,避免在ie下有时因为加载语言失败导致编辑器加载失败-->
<!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型,比如你在配置项目里配置的是英文,这里加载的中文,那最后就是中文-->
<script type="text/javascript" charset="utf-8" src="{{ admin_asset('bundles/phpzlcadmin/ueditor/i18n/zh-cn/zh-cn.js') }}"></script>
Expand Down

0 comments on commit 572dd8b

Please sign in to comment.