-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Rich text editor] Add full screen mode #1447
Conversation
📱 Scan the QR code below to install the build (arm64 only) for this PR. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #1447 +/- ##
===========================================
+ Coverage 57.86% 58.30% +0.44%
===========================================
Files 1130 1132 +2
Lines 30079 30219 +140
Branches 6147 6189 +42
===========================================
+ Hits 17404 17619 +215
+ Misses 10065 9960 -105
- Partials 2610 2640 +30
☔ View full report in Codecov by Sentry. |
5c86f18
to
5b702c1
Compare
import io.element.android.features.messages.impl.attachments.Attachment | ||
import io.element.android.libraries.textcomposer.MessageComposerMode | ||
import io.element.android.wysiwyg.compose.RichTextEditorState | ||
import kotlinx.collections.immutable.ImmutableList | ||
|
||
@Immutable | ||
@Stable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
richTextEditorState
is mutable
color = ElementTheme.colors.textSecondary, | ||
RichTextEditor( | ||
state = state, | ||
registerStateUpdates = !subcomposing, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Disable most of the editor functionality if it's just being measured for a subcomposition. This prevents it gaining focus and mutating the state.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, thanks. Maybe add this comment also in the code?
It would be cool if there was a way to permanently enable the rich text editor instead of having to tap two things for it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
color = ElementTheme.colors.textSecondary, | ||
RichTextEditor( | ||
state = state, | ||
registerStateUpdates = !subcomposing, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, thanks. Maybe add this comment also in the code?
… jonny/rte-full-screen
… jonny/rte-full-screen
Kudos, SonarCloud Quality Gate passed! |
Type of change
Content
ConstraintLayout
fromtextcomposer
module, now made much simpler now the RTE supports being called in multiple layouts [Android] Add support for subcomposition and sharing state matrix-org/matrix-rich-text-editor#822To follow in a later PR:
TextComposer.kt
file and split UI components into multiple files.Motivation and context
Screenshots / GIFs
Screen_recording_20230928_144233.webm
Checklist