bztang-admin/resources/views/goods/des.blade.php

44 lines
1.7 KiB
PHP

{{--<link rel="stylesheet" type="text/css" href="{{static_url('yunshop/goods/goods.css')}}"/>--}}
<style>
/*//* 避免商品详情tab下的百度富文本编辑器预览时被顶部导航栏遮挡 */
.edui-default {
z-index:2001!important;
}
.edui-default .edui-popup-content {
position: relative;
z-index:2002!important;
}
</style>
<div class="form-group">
<label class="col-xs-12 col-sm-3 col-md-1 control-label">{{$lang['shopinfo']}}</label>
<div class="col-sm-9 col-xs-12 col-md-11">
{!! yz_tpl_ueditor('goods[content]', $goods['content']) !!}
</div>
</div>
<script type="text/javascript">
var ueditoroption = {
'toolbars' : [['source', 'preview', '|', 'bold', 'italic', 'underline', 'strikethrough', 'forecolor', 'backcolor', '|',
'justifyleft', 'justifycenter', 'justifyright', '|', 'insertorderedlist', 'insertunorderedlist', 'blockquote', 'emotion',
'link', 'removeformat', '|', 'rowspacingtop', 'rowspacingbottom', 'lineheight','indent', 'paragraph', 'fontsize', '|',
'inserttable', 'deletetable', 'insertparagraphbeforetable', 'insertrow', 'deleterow', 'insertcol', 'deletecol',
'mergecells', 'mergeright', 'mergedown', 'splittocells', 'splittorows', 'splittocols', '|', 'anchor', 'map', 'print', 'drafts']],
};
</script>
<script type="text/javascript">
require(['bootstrap'], function ($) {
$(document).scroll(function () {
var toptype = $("#edui1_toolbarbox").css('position');
if (toptype == "fixed") {
$("#edui1_toolbarbox").addClass('top_menu');
}
else {
$("#edui1_toolbarbox").removeClass('top_menu');
}
});
});
</script>