|
@@ -3,6 +3,8 @@ import React from 'react';
|
|
|
|
|
|
|
|
import InterceptorManager from '@commons/service/interceptor-manager';
|
|
import InterceptorManager from '@commons/service/interceptor-manager';
|
|
|
|
|
|
|
|
|
|
+import { Input } from 'reactstrap';
|
|
|
|
|
+
|
|
|
import AbstractEditor from './AbstractEditor';
|
|
import AbstractEditor from './AbstractEditor';
|
|
|
|
|
|
|
|
import pasteHelper from './PasteHelper';
|
|
import pasteHelper from './PasteHelper';
|
|
@@ -21,6 +23,8 @@ export default class TextAreaEditor extends AbstractEditor {
|
|
|
isGfmMode: this.props.isGfmMode,
|
|
isGfmMode: this.props.isGfmMode,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+ this.textarea = React.createRef();
|
|
|
|
|
+
|
|
|
this.init();
|
|
this.init();
|
|
|
|
|
|
|
|
this.handleEnterKey = this.handleEnterKey.bind(this);
|
|
this.handleEnterKey = this.handleEnterKey.bind(this);
|
|
@@ -249,10 +253,10 @@ export default class TextAreaEditor extends AbstractEditor {
|
|
|
render() {
|
|
render() {
|
|
|
return (
|
|
return (
|
|
|
<React.Fragment>
|
|
<React.Fragment>
|
|
|
- <input
|
|
|
|
|
- componentClass="textarea"
|
|
|
|
|
- className="textarea-editor"
|
|
|
|
|
- inputRef={(ref) => { this.textarea = ref }}
|
|
|
|
|
|
|
+ <Input
|
|
|
|
|
+ type="textarea"
|
|
|
|
|
+ className="textarea-editor shadow-none"
|
|
|
|
|
+ innerRef={(c) => { this.textarea = c }}
|
|
|
defaultValue={this.state.value}
|
|
defaultValue={this.state.value}
|
|
|
onChange={(e) => {
|
|
onChange={(e) => {
|
|
|
if (this.props.onChange != null) {
|
|
if (this.props.onChange != null) {
|