diff --git a/package.json b/package.json index 06bde015..20692aef 100644 --- a/package.json +++ b/package.json @@ -147,6 +147,7 @@ "react-simple-dnd": "^0.1.2", "react-sortable": "^1.2.0", "react-split-pane": "^0.1.57", + "react-textarea-autosize-inputref": "^4.1.0", "react-toolbox": "^1.2.1", "react-topbar-progress-indicator": "^1.0.0", "react-waypoint": "^3.1.3", diff --git a/src/components/Widgets/MarkdownControlElements/RawEditor/index.js b/src/components/Widgets/MarkdownControlElements/RawEditor/index.js index 55725f71..1260cba1 100644 --- a/src/components/Widgets/MarkdownControlElements/RawEditor/index.js +++ b/src/components/Widgets/MarkdownControlElements/RawEditor/index.js @@ -3,6 +3,7 @@ import MarkupIt from 'markup-it'; import markdownSyntax from 'markup-it/syntaxes/markdown'; import htmlSyntax from 'markup-it/syntaxes/html'; import CaretPosition from 'textarea-caret-position'; +import TextareaAutosize from 'react-textarea-autosize-inputref'; import registry from '../../../../lib/registry'; import { createAssetProxy } from '../../../../valueObjects/AssetProxy'; import Toolbar from '../Toolbar/Toolbar'; @@ -171,6 +172,7 @@ export default class RawEditor extends React.Component { } handleRef = (ref) => { + console.log(ref); this.element = ref; if (ref) { this.caretPosition = new CaretPosition(ref); @@ -337,8 +339,8 @@ export default class RawEditor extends React.Component { rawMode /> -