Prechádzať zdrojové kódy

新增模板的问题

zhoujump 1 mesiac pred
rodič
commit
6c60011380

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 1 - 0
public/static/hugerte/langs/zh_CN.js


+ 2 - 2
src/views/components/packetList.vue

@@ -432,11 +432,11 @@ export default Vue.extend({
       margin-top: 36px;
       gap: 8px;
       display: flex;
-      flex-direction: column;
+      flex-direction: column-reverse;
       align-items: center;
       justify-content: center;
       .hr{
-        width: 120px;
+        width: 240px;
         height: 2px;
         background-color: lightgray;
       }

+ 19 - 17
src/views/invitationManage/edit.vue

@@ -308,25 +308,27 @@ export default Vue.extend({
         this.templateInfo.name = templateInfo.name
         this.templateInfo.description = templateInfo.description
         this.code = templateInfo.content
-        hugerte.init({
-          selector: '#editor-creat',
-          plugins: [
-            "advlist", "anchor", "autolink", "charmap", "code", "fullscreen",
-            "help", "image", "insertdatetime", "link", "lists", "media",
-            "preview", "searchreplace", "table", "visualblocks",
-          ],
-          toolbar: "undo redo | styles | bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
-          skin_url: 'default',
-          content_css: 'default',
-          statusbar: false,
-          height: '100%',
-          width: '100%'
-        }).then(editor => {
-          hugerte.activeEditor.setContent(this.code)
-        }).catch(err => {
-        })
         this.loading = false
       }
+      hugerte.init({
+        selector: '#editor-creat',
+        plugins: [
+          "advlist", "anchor", "autolink", "charmap", "code", "fullscreen",
+          "help", "image", "insertdatetime", "link", "lists", "media",
+          "preview", "searchreplace", "table", "visualblocks",
+        ],
+        toolbar: "undo redo | styles | bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
+        skin_url: 'default',
+        content_css: 'default',
+        statusbar: false,
+        height: '100%',
+        width: '100%',
+        language_url: '/static/hugerte/langs/zh_CN.js',
+        language: 'zh_CN'
+      }).then(editor => {
+        hugerte.activeEditor.setContent(this.code)
+      }).catch(err => {
+      })
     },
     saveTemp() {
       if (this.loading) { return }