我正在使用laravel背包作为crud,我正在用它创建一个laravel管理面板。我需要使用summernote wysiwyg字段,并且有一个带有laravel backpack的选项字段属性,我正在尝试输入夏季备注的minheight选项,但是它没有正确地将其添加到初始化中
$this->crud->addField([
'name' => 'desc',
'type' => 'summernote',
'label' => "feature description",
'options' => [
'minheight: 300'
]
]);

正如你所看到的,它不会增加地雷高度,有没有人有什么想法?
我有一个变通的工作,但它需要我编辑供应商文件,这不是我想要处理的事情。
发布于 2020-11-29 14:34:00
在属性数组中放置您的行和cols大小!
$this->crud->addField([
'name' => 'desc',
'type' => 'textarea',
'label' => "feature description",
'attributes' => [
'rows' => 20,
'cols' => 20
]
]);发布于 2019-03-25 16:42:27
将此脚本放在页面下方,以修改夏季笔记编辑器的大小和其他特征:
<script type="text/javascript">
$(document).ready(function() {
$('#summernote').summernote({
height: 250,
disableResizeEditor: true // This is optional if you want to remove resize
});
});
</script>https://stackoverflow.com/questions/55319017
复制相似问题