升级 froala-editor 同时默认开启图片编辑功能

This commit is contained in:
liaoxuezhi 2019-10-22 17:42:30 +08:00
parent 38f170f164
commit 841eb77bde
2 changed files with 2 additions and 1 deletions

View File

@ -35,7 +35,7 @@
"downshift": "3.1.4",
"echarts": "~4.1.0",
"flv.js": "1.5.0",
"froala-editor": "2.9.5",
"froala-editor": "2.9.6",
"history": "4.7.2",
"hls.js": "0.12.2",
"hoist-non-react-statics": "3.3.0",

View File

@ -16,6 +16,7 @@ function loadComponent(): Promise<React.ReactType> {
export default class RichTextControl extends React.Component<RichTextProps, any> {
static defaultProps: Partial<RichTextProps> = {
imageEditable: true,
reciever: '/api/upload/image',
videoReciever: '/api/upload/video',
placeholder: '请输入',