协议加超链接

This commit is contained in:
2024-05-23 13:11:26 +08:00
parent 555c0cb6b0
commit b9deb6ed29
4 changed files with 326 additions and 545 deletions

View File

@@ -1,274 +1,271 @@
<template> <template>
<el-dialog :title="!dataForm.id ? '新增' : '修改'" :close-on-click-modal="false" :visible.sync="visible" <div style="height: 100%;">
@close="handlereset"> <div style="height: calc(100% - 120px);margin-bottom: 80px;">
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" label-width="120px"> <el-upload
<el-form-item label="课程说明名称" prop="title"> class="chapter-avatar-uploader"
<el-input v-model="dataForm.title" placeholder="章节名"></el-input> :action="baseUrl + '/oss/fileoss'"
</el-form-item> accept=".jpeg,.jpg,.gif,.png"
:show-file-list="false"
:on-success="contentUploadSuccess"
>
</el-upload>
<quill-editor
v-model="dataForm.content"
ref="myQuillEditor"
:options="editorOption"
@blur="onEditorBlur($event)"
@focus="onEditorFocus($event)"
@ready="onEditorReady($event)"
class="chapter_editor"
style="height: 100%;"
>
</quill-editor>
</div>
<!-- <el-input v-model="dataForm.content" placeholder="内容"></el-input> -->
<el-form-item label="插图" prop="imgUrl"> <!-- <el-button @click="handlereset">取消</el-button> -->
<el-upload :action="baseUrl + '/oss/fileoss'" list-type="picture-card" :on-preview="handlePictureCardPreview" <el-button type="primary" @click="dataFormSubmit()" style="float: right;">保存</el-button>
:file-list="fileList" :on-success="handlePicSuccess" :on-remove="handleRemove"> </div>
<i class="el-icon-plus"></i>
</el-upload>
<el-dialog :visible.sync="dialogVisible" :append-to-body="true">
<img width="100%" :src="dataForm.imgUrl" alt="">
</el-dialog>
</el-form-item>
<el-form-item label="排序" prop="sort">
<el-input v-model="dataForm.sort" placeholder="排序"></el-input>
</el-form-item>
<el-form-item label="内容" prop="content" class="custom-chapter-height">
<!-- <el-input v-model="dataForm.content" placeholder="内容"></el-input> -->
<el-upload class="chapter-avatar-uploader" :action="baseUrl + '/oss/fileoss'" accept=".jpeg,.jpg,.gif,.png" :show-file-list="false" :on-success="contentUploadSuccess" >
</el-upload>
<quill-editor v-model="dataForm.content" ref="myQuillEditor" :options="editorOption"
@blur="onEditorBlur($event)" @focus="onEditorFocus($event)"
@ready="onEditorReady($event)" class="chapter_editor">
</quill-editor>
</el-form-item>
<!-- <el-form-item label="排序" prop="sort">
<el-input v-model="dataForm.sort" placeholder="排序"></el-input>
</el-form-item> -->
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="handlereset">取消</el-button>
<el-button type="primary" @click="dataFormSubmit()">确定</el-button>
</span>
</el-dialog>
</template> </template>
<script> <script>
import global from '../../common/common.vue' //引入共用组间 import global from "../../common/common.vue"; //引入共用组间
import { import { quillEditor } from "vue-quill-editor";
quillEditor import "quill/dist/quill.core.css";
} from 'vue-quill-editor' import "quill/dist/quill.snow.css";
import 'quill/dist/quill.core.css' import "quill/dist/quill.bubble.css";
import 'quill/dist/quill.snow.css' const toolbarOptions = [
import 'quill/dist/quill.bubble.css' ["bold", "italic", "underline", "strike"], // 加粗,斜体,下划线,删除线
const toolbarOptions = [ ["blockquote", "code-block"], //引用,代码块
['bold', 'italic', 'underline', 'strike'], // 加粗,斜体,下划线,删除线 [{ header: 1 }, { header: 2 }], // 几级标题
['blockquote', 'code-block'], //引用,代码块 [{ list: "ordered" }, { list: "bullet" }], // 有序列表,无序列表
[{ 'header': 1 }, { 'header': 2 }], // 几级标题 [{ script: "sub" }, { script: "super" }], // 下角标,上角标
[{ 'list': 'ordered' }, { 'list': 'bullet' }], // 有序列表,无序列表 [{ indent: "-1" }, { indent: "+1" }], // 缩进
[{ 'script': 'sub' }, { 'script': 'super' }], // 下角标,上角标 [{ direction: "rtl" }], // 文字输入方向
[{ 'indent': '-1' }, { 'indent': '+1' }], // 缩进 [{ size: ["small", false, "large", "huge"] }], // 字体大小
[{ 'direction': 'rtl' }], // 文字输入方向 [{ header: [1, 2, 3, 4, 5, 6, false] }], // 标题
[{ 'size': ['small', false, 'large', 'huge'] }], // 字体大小 [{ color: [] }, { background: [] }], // 颜色选择
[{ 'header': [1, 2, 3, 4, 5, 6, false] }],// 标题 [
[{ 'color': [] }, { 'background': [] }], // 颜色选择 {
[{ 'font': ['SimSun', 'SimHei', 'Microsoft-YaHei', 'KaiTi', 'FangSong', 'Arial'] }],// 字体 font: [
[{ 'align': [] }], // 居中 "SimSun",
['clean'], // 清除样式, "SimHei",
['link', 'image'], // 上传图片、上传视频 "Microsoft-YaHei",
] "KaiTi",
export default { "FangSong",
data() { "Arial"
return { ]
baseUrl: global.baseUrl, }
// 富文本编辑器配置 ], // 字体
editorOption: { [{ align: [] }], // 居中
modules: { ["clean"], // 清除样式,
history: { ["link", "image"] // 上传图片、上传视频
delay: 1000, ];
maxStack: 50, export default {
userOnly: false props:['dataInfo'],
}, data() {
toolbar: { return {
container: toolbarOptions, baseUrl: global.baseUrl,
handlers: { // 富文本编辑器配置
image: function (value) { editorOption: {
if (value) { modules: {
// 调用element的图片上传组件 history: {
document.querySelector('.chapter-avatar-uploader input').click() delay: 1000,
} else { maxStack: 50,
this.quill.format('image', false) userOnly: false
} },
toolbar: {
container: toolbarOptions,
handlers: {
image: function(value) {
if (value) {
// 调用element的图片上传组件
document
.querySelector(".chapter-avatar-uploader input")
.click();
} else {
this.quill.format("image", false);
} }
} }
}, }
}, }
placeholder: '请输入正文',
}, },
visible: false, placeholder: "请输入"+this.dataInfo.label
props: { },
dictType: '', visible: false,
dictValue: '' props: {
}, dictType: "",
gushuList:[], dictValue: ""
authorList: [], },
restaurants: [], gushuList: [],
author: '', authorList: [],
publisherList: [], restaurants: [],
fileList: [], author: "",
fileListNovel: [], publisherList: [],
dialogImageUrl: '', fileList: [],
dialogVisible: false, fileListNovel: [],
dataForm: { dialogImageUrl: "",
"courseId": 0, dialogVisible: false,
"catalogueId": 0, dataForm: {
"title": "", courseId: 0,
"imgUrl": "", catalogueId: 0,
"content": "", title: "",
"sort": 1, imgUrl: "",
}, content: "",
splitsTypeList: [], sort: 1
dataRule: { },
splitsTypeList: [],
dataRule: {}
} };
},
components: {
quillEditor
},
created() {},
mounted() {},
methods: {
contentUploadSuccess(res, file) {
// console.log(res)
let quill = this.$refs.myQuillEditor.quill;
// 如果上传成功
if (res) {
// 获取光标所在位置
let length = quill.getSelection().index;
// 插入图片res为服务器返回的图片链接地址
quill.insertEmbed(length, "image", res.url);
// 调整光标到最后
quill.setSelection(length + 1);
} else {
// 提示信息需引入Message
this.$message.error("图片插入失败!");
} }
}, },
components: { // 失去焦点事件
quillEditor onEditorBlur(quill) {
// console.log('editor blur!', quill)
}, },
created() { // 获得焦点事件
onEditorFocus(quill) {
//console.log('editor focus!', quill)
}, },
mounted() { // 准备富文本编辑器
onEditorReady(quill) {
// console.log('editor ready!', quill)
}, },
methods: { init(row, catalogue_id, courseid) {
contentUploadSuccess(res, file) { console.log("row21", row);
// console.log(res) this.dataForm = row ? JSON.parse(JSON.stringify(row)) : {};
let quill = this.$refs.myQuillEditor.quill this.dataForm.courseId = courseid ? courseid : "";
// 如果上传成功 this.dataForm.catalogueId = catalogue_id ? catalogue_id : "";
if (res) { this.visible = true;
// 获取光标所在位置 if (this.dataForm.imgUrl && this.dataForm.imgUrl != "") {
let length = quill.getSelection().index; var img = {
// 插入图片res为服务器返回的图片链接地址 name: "",
quill.insertEmbed(length, 'image', res.url) url: this.dataForm.imgUrl
// 调整光标到最后 };
quill.setSelection(length + 1) var attr = [];
} else { attr.push(img);
// 提示信息需引入Message this.fileList = attr;
this.$message.error('图片插入失败!') } else {
} this.fileList = [];
}
}, },
// 失去焦点事件 // 表单提交
onEditorBlur(quill) { dataFormSubmit() {
// console.log('editor blur!', quill) this.$refs["dataForm"].validate(valid => {
}, if (valid) {
// 获得焦点事件 this.$http({
onEditorFocus(quill) { url: this.$http.adornUrl(
//console.log('editor focus!', quill) `${
}, !this.dataForm.id
// 准备富文本编辑器 ? "/master/course/addCourseCatalogueChapter"
onEditorReady(quill) { : "/master/course/editCourseCatalogueChapter"
// console.log('editor ready!', quill) }`
}, ),
init(row, catalogue_id, courseid) { method: "post",
console.log('row21', row) data: this.$http.adornData({
this.dataForm =row? JSON.parse(JSON.stringify(row)): {} id: this.dataForm.id || undefined,
this.dataForm.courseId = courseid?courseid : '' courseId: this.dataForm.courseId || undefined,
this.dataForm.catalogueId = catalogue_id?catalogue_id : '' catalogueId: this.dataForm.catalogueId || undefined,
this.visible = true title: this.dataForm.title,
if (this.dataForm.imgUrl && this.dataForm.imgUrl != "") { imgUrl: this.dataForm.imgUrl,
var img = { content: this.dataForm.content,
name: '', sort: this.dataForm.sort
url: this.dataForm.imgUrl
}
var attr = []
attr.push(img)
this.fileList = attr
}else{
this.fileList = []
}
},
// 表单提交
dataFormSubmit() {
this.$refs['dataForm'].validate((valid) => {
if (valid) {
this.$http({
url: this.$http.adornUrl(`${!this.dataForm.id ? '/master/course/addCourseCatalogueChapter' : '/master/course/editCourseCatalogueChapter'}`),
method: 'post',
data: this.$http.adornData({
"id": this.dataForm.id || undefined,
'courseId': this.dataForm.courseId || undefined,
'catalogueId': this.dataForm.catalogueId || undefined,
'title': this.dataForm.title,
"imgUrl": this.dataForm.imgUrl,
"content": this.dataForm.content,
"sort": this.dataForm.sort,
})
}).then(({
data
}) => {
if (data && data.code === 0) {
this.$message({
message: '操作成功',
type: 'success',
duration: 1500,
onClose: () => {
this.visible = false
this.$emit('refreshDataList')
}
})
} else {
this.$message.error(data.msg)
}
}) })
} }).then(({ data }) => {
}) if (data && data.code === 0) {
}, this.$message({
handlePicSuccess(res, file) { message: "操作成功",
if (res.msg == "success") { type: "success",
this.dataForm.imgUrl = res.url; duration: 1500,
this.$message.success("上传成功"); onClose: () => {
} else { this.visible = false;
this.$message.error("上传失败"); this.$emit("refreshDataList");
}
});
} else {
this.$message.error(data.msg);
}
});
} }
}, });
handleRemove(file) { },
this.dataForm.imgUrl = ''; handlePicSuccess(res, file) {
}, if (res.msg == "success") {
handlePictureCardPreview(file) { this.dataForm.imgUrl = res.url;
this.dataForm.imgUrl = file.url; this.$message.success("上传成功");
this.dialogVisible = true; } else {
}, this.$message.error("上传失败");
handleDownload(file) { }
console.log(file) },
}, handleRemove(file) {
handlereset() { this.dataForm.imgUrl = "";
this.fileList = [], },
this.fileListNovel = [], handlePictureCardPreview(file) {
this.visible = false this.dataForm.imgUrl = file.url;
}, this.dialogVisible = true;
handlePreview(file) { },
console.log(file); handleDownload(file) {
}, console.log(file);
handleExceed(files, fileList) { },
this.$message.warning(`当前限制选择 3 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`); handlereset() {
}, (this.fileList = []), (this.fileListNovel = []), (this.visible = false);
beforeRemove(file, fileList) { },
return this.$confirm(`确定移除 ${ file.name }`); handlePreview(file) {
}, console.log(file);
handleRemoveNovel(file) { },
this.dataForm.novel = ''; handleExceed(files, fileList) {
}, this.$message.warning(
handleNovelSuccess(file) { `当前限制选择 3 个文件,本次选择了 ${
this.dataForm.novel = file.url files.length
}, } 个文件,共选择了 ${files.length + fileList.length} 个文件`
// querySearch(queryString, cb) { );
// var restaurants = this.restaurants; },
// var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants; beforeRemove(file, fileList) {
// // 调用 callback 返回建议列表的数据 return this.$confirm(`确定移除 ${file.name}`);
// console.log(results) },
// cb(results); handleRemoveNovel(file) {
// }, this.dataForm.novel = "";
// createFilter(queryString) { },
// return (restaurant) => { handleNovelSuccess(file) {
// return (restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0); this.dataForm.novel = file.url;
// };
// },
// handleSelect(item) {
// this.dataForm.authorId = item.id
// console.log(item);
// }
} }
// querySearch(queryString, cb) {
// var restaurants = this.restaurants;
// var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
// // 调用 callback 返回建议列表的数据
// console.log(results)
// cb(results);
// },
// createFilter(queryString) {
// return (restaurant) => {
// return (restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
// };
// },
// handleSelect(item) {
// this.dataForm.authorId = item.id
// console.log(item);
// }
} }
};
</script> </script>

View File

@@ -1,127 +1,17 @@
<template> <template>
<div class="mod-config"> <div class="mod-config" style="height: calc(100vh - 180px)">
<el-form <el-tabs tab-position="left" style="height: 100%;">
:inline="true" <el-tab-pane :label="v.label" v-for="(v, i) in setList" :key="i" style="height: 100%;">
:model="dataForm" <add-or-update
@keyup.enter.native="getDataList()" :dataInfo="v"
> style="height: calc(100vh - 180px)"
<!-- <el-form-item label="课程目录章节名称"> ref="addOrUpdate"
<el-input v-model="query.keywords" placeholder="课程目录章节名称" clearable></el-input> @refreshDataList="getDataList"
</el-form-item> --> ></add-or-update>
<el-form-item> </el-tab-pane>
<!-- <el-button </el-tabs>
@click="
pageIndex = 1;
getDataList();
"
>查询</el-button
> -->
<el-button type="primary" @click="addOrUpdateHandle()">新增</el-button>
</el-form-item>
</el-form>
<el-table
:data="dataList"
border
v-loading="dataListLoading"
style="width: 100%;"
>
<el-table-column
prop="title"
header-align="center"
align="center"
label="课程说明名称"
>
</el-table-column>
<!-- <el-table-column
prop="createTime"
header-align="center"
align="center"
label="创建日期"
>
</el-table-column> -->
<el-table-column header-align="center" align="center" label="图片">
<template slot-scope="scope">
<img
v-if="scope.row.imgUrl != ''"
:src="scope.row.imgUrl"
width="70"
height="100"
class="tableImg"
/>
</template>
</el-table-column>
<el-table-column
prop="content"
header-align="center"
align="center"
label="内容"
>
<template slot-scope="scope">
<div class="hidden1">
{{ scope.row.content }}
</div>
</template>
</el-table-column>
<el-table-column
prop="sort"
width="100"
header-align="center"
align="center"
label="排序"
>
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="250"
label="操作"
>
<template slot-scope="scope">
<div>
<router-link
:to="{
path: 'course-courseVideo',
query: { id: scope.row.id, pageIndex }
}"
>
<el-button type="text" size="small">视频管理</el-button>
</router-link>
<el-button
type="text"
size="small"
@click="addOrUpdateHandle(scope.row)"
>修改</el-button
>
<el-button
type="text"
size="small"
@click="deleteHandle(scope.row.id)"
>删除</el-button
>
</div>
</template>
</el-table-column>
</el-table>
<el-pagination
@size-change="sizeChangeHandle"
@current-change="currentChangeHandle"
:current-page="pageIndex"
:page-sizes="[10, 20, 50, 100]"
:page-size="pageSize"
:total="totalPage"
style="padding: 30px 0; text-align: center;"
layout="total, sizes, prev, pager, next, jumper"
>
</el-pagination>
<!-- 弹窗, 新增 / 修改 --> <!-- 弹窗, 新增 / 修改 -->
<add-or-update
v-if="addOrUpdateVisible"
ref="addOrUpdate"
@refreshDataList="getDataList"
></add-or-update>
</div> </div>
</template> </template>
@@ -130,6 +20,12 @@ import AddOrUpdate from "./chapter-add-or-update";
export default { export default {
data() { data() {
return { return {
setList: [
{ label: "购买须知", id: 1 },
{ label: "使用须知", id: 2 },
{ label: "学习次序", id: 3 },
{ label: "超V用户", id: 4 }
],
dataForm: { dataForm: {
key: "" key: ""
}, },
@@ -344,8 +240,11 @@ export default {
overflow: hidden; overflow: hidden;
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp:1; -webkit-line-clamp: 1;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} }
::v-deep .mod-config .el-tabs .el-tabs__content {
height: 100% !important;
}
</style> </style>

View File

@@ -1,127 +1,17 @@
<template> <template>
<div class="mod-config"> <div class="mod-config" style="height: calc(100vh - 180px)">
<el-form <el-tabs tab-position="left" style="height: 100%;">
:inline="true" <el-tab-pane :label="v.label" v-for="(v, i) in setList" :key="i" style="height: 100%;">
:model="dataForm" <add-or-update
@keyup.enter.native="getDataList()" :dataInfo="v"
> style="height: calc(100vh - 180px)"
<!-- <el-form-item label="课程目录章节名称"> ref="addOrUpdate"
<el-input v-model="query.keywords" placeholder="课程目录章节名称" clearable></el-input> @refreshDataList="getDataList"
</el-form-item> --> ></add-or-update>
<el-form-item> </el-tab-pane>
<!-- <el-button </el-tabs>
@click="
pageIndex = 1;
getDataList();
"
>查询</el-button
> -->
<el-button type="primary" @click="addOrUpdateHandle()">新增</el-button>
</el-form-item>
</el-form>
<el-table
:data="dataList"
border
v-loading="dataListLoading"
style="width: 100%;"
>
<el-table-column
prop="title"
header-align="center"
align="center"
label="课程说明名称"
>
</el-table-column>
<!-- <el-table-column
prop="createTime"
header-align="center"
align="center"
label="创建日期"
>
</el-table-column> -->
<el-table-column header-align="center" align="center" label="图片">
<template slot-scope="scope">
<img
v-if="scope.row.imgUrl != ''"
:src="scope.row.imgUrl"
width="70"
height="100"
class="tableImg"
/>
</template>
</el-table-column>
<el-table-column
prop="content"
header-align="center"
align="center"
label="内容"
>
<template slot-scope="scope">
<div class="hidden1">
{{ scope.row.content }}
</div>
</template>
</el-table-column>
<el-table-column
prop="sort"
width="100"
header-align="center"
align="center"
label="排序"
>
</el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="250"
label="操作"
>
<template slot-scope="scope">
<div>
<router-link
:to="{
path: 'course-courseVideo',
query: { id: scope.row.id, pageIndex }
}"
>
<el-button type="text" size="small">视频管理</el-button>
</router-link>
<el-button
type="text"
size="small"
@click="addOrUpdateHandle(scope.row)"
>修改</el-button
>
<el-button
type="text"
size="small"
@click="deleteHandle(scope.row.id)"
>删除</el-button
>
</div>
</template>
</el-table-column>
</el-table>
<el-pagination
@size-change="sizeChangeHandle"
@current-change="currentChangeHandle"
:current-page="pageIndex"
:page-sizes="[10, 20, 50, 100]"
:page-size="pageSize"
:total="totalPage"
style="padding: 30px 0; text-align: center;"
layout="total, sizes, prev, pager, next, jumper"
>
</el-pagination>
<!-- 弹窗, 新增 / 修改 --> <!-- 弹窗, 新增 / 修改 -->
<add-or-update
v-if="addOrUpdateVisible"
ref="addOrUpdate"
@refreshDataList="getDataList"
></add-or-update>
</div> </div>
</template> </template>
@@ -130,6 +20,12 @@ import AddOrUpdate from "./chapter-add-or-update";
export default { export default {
data() { data() {
return { return {
setList: [
{ label: "购买须知", id: 1 },
{ label: "使用须知", id: 2 },
{ label: "学习次序", id: 3 },
{ label: "超V用户", id: 4 }
],
dataForm: { dataForm: {
key: "" key: ""
}, },
@@ -344,8 +240,11 @@ export default {
overflow: hidden; overflow: hidden;
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp:1; -webkit-line-clamp: 1;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} }
::v-deep .mod-config .el-tabs .el-tabs__content {
height: 100% !important;
}
</style> </style>

View File

@@ -40,7 +40,33 @@
import { import {
quillEditor quillEditor
} from 'vue-quill-editor' } from 'vue-quill-editor'
const toolbarOptions = [
["bold", "italic", "underline", "strike"], // 加粗,斜体,下划线,删除线
["blockquote", "code-block"], //引用,代码块
[{ header: 1 }, { header: 2 }], // 几级标题
[{ list: "ordered" }, { list: "bullet" }], // 有序列表,无序列表
[{ script: "sub" }, { script: "super" }], // 下角标,上角标
[{ indent: "-1" }, { indent: "+1" }], // 缩进
[{ direction: "rtl" }], // 文字输入方向
[{ size: ["small", false, "large", "huge"] }], // 字体大小
[{ header: [1, 2, 3, 4, 5, 6, false] }], // 标题
[{ color: [] }, { background: [] }], // 颜色选择
[
{
font: [
"SimSun",
"SimHei",
"Microsoft-YaHei",
"KaiTi",
"FangSong",
"Arial"
]
}
], // 字体
[{ align: [] }], // 居中
["clean"], // 清除样式,
["link", "image"] // 上传图片、上传视频
];
import 'quill/dist/quill.core.css' import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css' import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css' import 'quill/dist/quill.bubble.css'
@@ -88,50 +114,10 @@
], ],
editorOption: { editorOption: {
modules: { modules: {
toolbar: [ toolbar: {
['bold', 'italic', 'underline', 'strike'], // 加粗 斜体 下划线 删除线 container: toolbarOptions,
['blockquote', 'code-block'], // 引用 代码块
[{ }
header: 1
}, {
header: 2
}], // 1、2 级标题
[{
list: 'ordered'
}, {
list: 'bullet'
}], // 有序、无序列表
[{
script: 'sub'
}, {
script: 'super'
}], // 上标/下标
[{
indent: '-1'
}, {
indent: '+1'
}], // 缩进
[{
direction: 'rtl'
}], // 文本方向
[{
size: ['12', '14', '16', '18', '20', '22', '24', '28', '32', '36']
}], // 字体大小
[{
header: [1, 2, 3, 4, 5, 6]
}], // 标题
[{
color: []
}, {
background: []
}], // 字体颜色、字体背景颜色
// [{ font: ['songti'] }], // 字体种类
[{
align: []
}], // 对齐方式
['clean'], // 清除文本格式
['image', 'video'] // 链接、图片、视频
]
}, },
placeholder: '请输入正文' placeholder: '请输入正文'
}, },