|
@@ -147,7 +147,7 @@ export default {
|
|
|
mounted() {
|
|
|
if (!this.$route.query.id) {
|
|
|
const editor = new E('#wangeditor')
|
|
|
- editor.customConfig.menus = ['bold', 'italic', 'underline', 'link', 'list', 'justify', 'table']
|
|
|
+ editor.customConfig.menus = ['bold', 'italic', 'underline', 'link', 'list', 'justify', 'table', 'foreColor']
|
|
|
editor.customConfig.onchange = (html) => {
|
|
|
this.editorContent = html
|
|
|
}
|
|
@@ -177,7 +177,7 @@ export default {
|
|
|
this.form = res.data
|
|
|
this.editorContent = res.data.timeInfo
|
|
|
const editor = new E('#wangeditor')
|
|
|
- editor.customConfig.menus = ['bold', 'italic', 'underline', 'link', 'list', 'justify', 'table']
|
|
|
+ editor.customConfig.menus = ['bold', 'italic', 'underline', 'link', 'list', 'justify', 'table', 'foreColor']
|
|
|
editor.customConfig.onchange = (html) => {
|
|
|
this.editorContent = html
|
|
|
}
|
|
@@ -285,6 +285,7 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="stylus" scoped>
|
|
|
+
|
|
|
.set-background
|
|
|
background-color #F2F3F6
|
|
|
display flex
|