周立森 5 anni fa
parent
commit
1ad34b7ee7

+ 0
- 1
vue-element-admin/package.json Vedi File

@@ -90,7 +90,6 @@
90 90
     "friendly-errors-webpack-plugin": "1.7.0",
91 91
     "hash-sum": "1.0.2",
92 92
     "html-webpack-plugin": "4.0.0-alpha",
93
-    "husky": "0.14.3",
94 93
     "lint-staged": "7.2.2",
95 94
     "mini-css-extract-plugin": "0.4.1",
96 95
     "node-notifier": "5.2.1",

+ 1
- 1
vue-element-admin/src/components/Tinymce/index.vue Vedi File

@@ -111,7 +111,7 @@ export default {
111 111
       paste_data_images: true, // 允许粘贴图像
112 112
 
113 113
       // images_upload_url: this.publicPath,
114
-      // menubar: false, // 隐藏最上方menu | bdmap indent2em lineheight formatpainter axupimgs alignjustify outdent indent
114
+      // menubar: false, // 隐藏最上方menu | bdmap indent2em lineheight formatpainter axupimgs alignjustify outdent indent restoredraft
115 115
       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  autoresize axupimgs',
116 116
       toolbar: 'code undo redo restoredraft | cut copy paste pastetext | forecolor backcolor bold italic underline strikethrough image link imageUpload anchor | alignleft aligncenter alignright  | \
117 117
     styleselect formatselect fontselect fontsizeselect | bullist numlist | blockquote subscript superscript removeformat | \

+ 0
- 75
vue-element-admin/src/components/Wangeditor/index.vue Vedi File

@@ -1,75 +0,0 @@
1
-<template>
2
-  <div id="websiteEditorElem" style="height: 400px"/>
3
-</template>
4
-
5
-<script>
6
-import E from 'wangeditor'
7
-export default {
8
-  name: 'Index',
9
-  props: [
10
-    // 'content'
11
-  ],
12
-  data() {
13
-    return {
14
-      text: this.content,
15
-      phoneEditor: ''
16
-    }
17
-  },
18
-  watch: {
19
-    text(newVal, oldVal) {
20
-      // this.phoneEditor.txt.html(this.text)
21
-      if (!newVal && oldVal) {
22
-        this.text = newVal
23
-        this.intiPhoneEditor()
24
-      }
25
-      this.sendContent()
26
-    }
27
-  },
28
-  mounted() {
29
-    this.$nextTick(() => {
30
-      this.intiPhoneEditor()
31
-    })
32
-  },
33
-  methods: {
34
-    sendContent() {
35
-      this.$emit('get-content', this.text)
36
-    },
37
-    intiPhoneEditor() {
38
-      const _that = this
39
-      _that.phoneEditor = new E('#websiteEditorElem')
40
-      const phoneEditor = _that.phoneEditor
41
-      phoneEditor.customConfig.zIndex = 1
42
-      phoneEditor.customConfig.onchange = function(html) {
43
-        _that.text = html
44
-      }
45
-      // phoneEditor.customConfig.uploadImgServer = this.upFileUrl
46
-      // phoneEditor.customConfig.uploadFileName = 'uploadFiles'
47
-
48
-      // phoneEditor.customConfig.customUploadImg = function (files, insert) {
49
-      //     _that.uploadImg(files[0]).then(data => {
50
-      //         insert(data)
51
-      //     })
52
-      // }
53
-      phoneEditor.customConfig.menus = [
54
-        'head', // 标题
55
-        'bold', // 粗体
56
-        'fontSize', // 字号
57
-        'fontName', // 字体
58
-        'italic', // 斜体
59
-        'underline', // 下划线
60
-        'strikeThrough', // 删除线
61
-        'foreColor', // 文字颜色
62
-        'backColor', // 背景颜色
63
-        'justify', // 对齐方式
64
-        'image' // 插入图片
65
-      ]
66
-      phoneEditor.create()
67
-      phoneEditor.txt.html(this.text)
68
-    }
69
-  }
70
-}
71
-</script>
72
-
73
-<style scoped>
74
-
75
-</style>