|
@@ -172,6 +172,8 @@ class Editor extends React.Component {
|
172
|
172
|
rows,
|
173
|
173
|
showEmoji,
|
174
|
174
|
showUpload,
|
|
175
|
+ multiple,
|
|
176
|
+ emojiPopoverPlacement,
|
175
|
177
|
closeUploadWhenBlur,
|
176
|
178
|
maxUpload,
|
177
|
179
|
// btnSubmitText,
|
|
@@ -199,7 +201,6 @@ class Editor extends React.Component {
|
199
|
201
|
"comment-editor-toolbar-error": inputValue.length > maxLength
|
200
|
202
|
})}
|
201
|
203
|
>
|
202
|
|
-
|
203
|
204
|
{/* {intl.get("editor.alreadyEntered", {
|
204
|
205
|
count: inputValue.length,
|
205
|
206
|
maxLength
|
|
@@ -219,7 +220,7 @@ class Editor extends React.Component {
|
219
|
220
|
{showEmoji && (
|
220
|
221
|
<Popover
|
221
|
222
|
trigger="click"
|
222
|
|
- placement="bottomLeft"
|
|
223
|
+ placement={emojiPopoverPlacement}
|
223
|
224
|
autoAdjustOverflow={false}
|
224
|
225
|
content={
|
225
|
226
|
<div
|
|
@@ -264,6 +265,7 @@ class Editor extends React.Component {
|
264
|
265
|
}}
|
265
|
266
|
>
|
266
|
267
|
<Upload
|
|
268
|
+ multiple={multiple}
|
267
|
269
|
onChangeFileList={this.handleChangeFileList}
|
268
|
270
|
onUpload={this.handleUpload}
|
269
|
271
|
maxUpload={maxUpload}
|
|
@@ -343,7 +345,9 @@ Editor.propTypes = {
|
343
|
345
|
rows: PropTypes.number,
|
344
|
346
|
placeholder: PropTypes.string,
|
345
|
347
|
showEmoji: PropTypes.bool,
|
|
348
|
+ emojiPopoverPlacement: PropTypes.string,
|
346
|
349
|
showUpload: PropTypes.bool,
|
|
350
|
+ multiple: PropTypes.bool,
|
347
|
351
|
closeUploadWhenBlur: PropTypes.bool,
|
348
|
352
|
maxUpload: PropTypes.number,
|
349
|
353
|
value: PropTypes.string,
|
|
@@ -366,6 +370,8 @@ Editor.defaultProps = {
|
366
|
370
|
// placeholder: "说点什么吧",
|
367
|
371
|
showEmoji: true,
|
368
|
372
|
showUpload: true,
|
|
373
|
+ multiple: true,
|
|
374
|
+ emojiPopoverPlacement: "bottomLeft",
|
369
|
375
|
closeUploadWhenBlur: false,
|
370
|
376
|
maxUpload: 1,
|
371
|
377
|
// btnSubmitText: "发表",
|