diff --git a/app/javascript/gabsocial/components/autosuggest_textbox/autosuggest_textbox.js b/app/javascript/gabsocial/components/autosuggest_textbox/autosuggest_textbox.js index cf862011..9175aacb 100644 --- a/app/javascript/gabsocial/components/autosuggest_textbox/autosuggest_textbox.js +++ b/app/javascript/gabsocial/components/autosuggest_textbox/autosuggest_textbox.js @@ -3,6 +3,7 @@ import ImmutablePropTypes from 'react-immutable-proptypes' import classNames from 'classnames/bind' import ImmutablePureComponent from 'react-immutable-pure-component' import Textarea from 'react-textarea-autosize' +import ContentEditable from 'react-contenteditable' import { isRtl } from '../../utils/rtl' import { textAtCursorMatchesToken } from '../../utils/cursor_token_match' import AutosuggestAccount from '../autosuggest_account' @@ -228,18 +229,46 @@ export default class AutosuggestTextbox extends ImmutablePureComponent { marginRight5PX: small, }) + //
+ if (textarea) { return (
-