Selaa lähdekoodia

发布文件 添加首航缩进

lidongxue 6 kuukautta sitten
vanhempi
commit
c385247708
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      src/main/resources/templates/admin/article/publishFile.html

+ 3 - 1
src/main/resources/templates/admin/article/publishFile.html

@@ -347,6 +347,8 @@
             'wordcount',
             'visualchars',
             'fontsize',
+            'code',
+            'indent2em'
         ],
         setup: function(editor) {
             // 在这里注册您的自定义按钮
@@ -358,7 +360,7 @@
                 }
             });
         },
-        toolbar: 'undo redo bold italic alignleft aligncenter alignright alignjustify customdivider', // 将自定义按钮添加到工具栏
+        toolbar: 'undo redo bold italic alignleft aligncenter alignright alignjustify customdivider code indent2em', // 将自定义按钮添加到工具栏
         fontsize_formats: '8pt 10pt 12pt 14pt 18pt 24pt 36pt 44pt 52pt 60pt 68pt 72pt', // 自定义字号列表
         font_formats: "方正小标宋='Fzxbsjt';微软雅黑='微软雅黑';宋体='宋体';黑体='黑体';仿宋='仿宋';楷体='楷体';隶书='隶书';幼圆='幼圆';Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings",
         image_advtab: true,