From 2f9dbfa91d9346411d26087479415db5bb35d21d Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Sun, 8 Mar 2020 12:46:00 -0400 Subject: [PATCH] Progress --- .../autosuggest_textbox.js | 35 ++++- .../gabsocial/components/emoji/emoji.js | 4 +- .../gabsocial/components/modal/modal_base.js | 4 +- .../panel/notification_filter_panel.js | 6 +- .../gabsocial/components/{poll => }/poll.js | 19 ++- .../gabsocial/components/poll/index.js | 1 - .../gabsocial/components/poll/poll.scss | 147 ------------------ .../components/sidebar_section_item.js | 2 +- .../gabsocial/components/status/status.js | 5 +- .../gabsocial/components/status_action_bar.js | 4 - .../components/compose_form/compose_form.js | 2 +- .../features/compose/components/poll_form.js | 29 ++-- .../search_results/search_results.js | 41 ++--- app/javascript/styles/gabsocial/polls.scss | 71 --------- package.json | 2 + yarn.lock | 94 ++++++++++- 16 files changed, 189 insertions(+), 277 deletions(-) rename app/javascript/gabsocial/components/{poll => }/poll.js (94%) delete mode 100644 app/javascript/gabsocial/components/poll/index.js delete mode 100644 app/javascript/gabsocial/components/poll/poll.scss delete mode 100644 app/javascript/styles/gabsocial/polls.scss 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 (
-