中文配置参数地址:http://tinymce.ax-z.cn/
配置路径:app/Admin/bootstrap.php
use Dcat\Admin\Form\Field\Editor; //引入
Editor::resolving(function (Editor $editor) {
// 设置默认配置
$editor->options([
// 'plugins' => [ # 自定义插件
// 'print', 'preview', 'searchreplace', 'autolink', 'directionality',
// 'visualblocks', 'visualchars', 'fullscreen', 'image', 'link', 'media', 'template', 'code',
// 'codesample',
// 'table', 'charmap', 'hr', 'pagebreak', 'nonbreaking', 'anchor', 'insertdatetime',
// 'advlist', 'lists', 'wordcount', 'imagetools', 'textpattern', 'help', 'emoticons',
// 'autosave', 'bdmap', 'indent2em', 'autoresize', 'formatpainter', 'axupimgs',
// 'importword',
// ],
'content_style' => "body {font-size:14px;line-height:1}", // 默认字号、行距
'branding' => false, // 隐藏版权
'fontsize_formats' => '11px 12px 14px 16px 18px 24px 36px 48px', // 可选字号
'toolbar' => [ # 自定义工具栏
'code undo redo restoredraft | cut copy paste pastetext | forecolor backcolor
bold italic underline strikethrough link anchor | alignleft aligncenter alignright alignjustify outdent indent | styleselect formatselect fontselect fontsizeselect
| bullist numlist | blockquote subscript superscript removeformat | \
table image media charmap emoticons hr pagebreak insertdatetime print preview |
fullscreen | bdmap indent2em lineheight formatpainter axupimgs importword',
],
]);
});