Quellcode durchsuchen

Changed: "version": "0.1.88",

洪海涛 vor 4 Jahren
Ursprung
Commit
b31b6e5ba0
2 geänderte Dateien mit 8 neuen und 3 gelöschten Zeilen
  1. 1 1
      package.json
  2. 7 2
      src/components/searchInput/components/editor/index.js

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "@didi/platformui",
-  "version": "0.1.87",
+  "version": "0.1.88",
   "description": "A platformui",
   "main": "dist/bundle.js",
   "author": "wenbobowen",

+ 7 - 2
src/components/searchInput/components/editor/index.js

@@ -68,9 +68,14 @@ class EditorInput extends React.Component {
       menubar: false, // 隐藏最上方menu
       fontsize_formats: '14px 16px 18px 20px 24px 26px 28px 30px 32px 36px', // 字体大小
       file_picker_types: 'image',
+      charmap_append: [
+        [0x2615, 'morning coffee'],
+        [0x2600, 'sun'],
+        [0x2601, 'cloud'],
+      ],
       images_upload_credentials: true,
-      plugins: 'fullscreen lists table textcolor wordcount contextmenu codesample link', // 引入插件
-      toolbar: 'fullscreen bold italic underline strikethrough | link fontsizeselect | forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent table | undo redo | removeformat formatselect codesample',
+      plugins: 'fullscreen lists table textcolor wordcount contextmenu codesample link imagetools charmap', // 引入插件
+      toolbar: 'fullscreen bold italic underline strikethrough | link fontsizeselect | forecolor backcolor charmap | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent table | undo redo | removeformat formatselect codesample',
       table_toolbar: 'tableprops | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol | tablemergecells tablesplitcells',
       relative_urls: false,
       images_upload_url: 'http://star.xiaojukeji.com/upload/img.node',