Rich Text Editor (WIP) x4

This commit is contained in:
mgabdev
2020-06-17 16:27:58 -04:00
parent 1a506327db
commit b93ecc7095
11 changed files with 384 additions and 10 deletions

View File

@@ -39,6 +39,8 @@ const mapStateToProps = (state, props) => {
// console.log("isMatch:", isMatch, reduxReplyToId, replyToId, state.getIn(['compose', 'text']))
// console.log("reduxReplyToId:", reduxReplyToId, isModalOpen, isStandalone)
const edit = state.getIn(['compose', 'id'])
if (!isMatch) {
return {
isMatch,
@@ -46,6 +48,7 @@ const mapStateToProps = (state, props) => {
reduxReplyToId,
edit: null,
text: '',
markdown: null,
suggestions: ImmutableList(),
spoiler: false,
spoilerText: '',
@@ -65,13 +68,14 @@ const mapStateToProps = (state, props) => {
selectedGifSrc: null,
}
}
return {
isMatch,
isModalOpen,
reduxReplyToId,
edit: state.getIn(['compose', 'id']) !== null,
text: state.getIn(['compose', 'text']),
markdown: state.getIn(['compose', 'markdown']),
suggestions: state.getIn(['compose', 'suggestions']),
spoiler: state.getIn(['compose', 'spoiler']),
spoilerText: state.getIn(['compose', 'spoiler_text']),