Kaynağa Gözat

Added: 富文本编辑器增加【代码块】【链接】【图片编辑】【特殊字符】等插件使用

洪海涛 3 yıl önce
ebeveyn
işleme
51c5580810

+ 3 - 3
src/components/searchInput/components/editor/index.js

@@ -69,8 +69,8 @@ class EditorInput extends React.Component {
       fontsize_formats: '14px 16px 18px 20px 24px 26px 28px 30px 32px 36px', // 字体大小
       file_picker_types: 'image',
       images_upload_credentials: true,
-      plugins: 'fullscreen lists table textcolor wordcount contextmenu', // 引入插件
-      toolbar: 'fullscreen bold italic underline strikethrough | fontsizeselect | forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent table | undo redo | removeformat formatselect',
+      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',
       table_toolbar: 'tableprops | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol | tablemergecells tablesplitcells',
       relative_urls: false,
       images_upload_url: 'http://star.xiaojukeji.com/upload/img.node',
@@ -81,7 +81,7 @@ class EditorInput extends React.Component {
         console.log(11111, blobInfo, success, failure)
       }
     }
-    
+
     return (
       <div className="editor">
         <Editor