https://github.com/frankois944/android-custom-text-toolbar
Customize Compose Text Toolbar
https://github.com/frankois944/android-custom-text-toolbar
compose contextual kotlin texttoolbar
Last synced: 9 days ago
JSON representation
Customize Compose Text Toolbar
- Host: GitHub
- URL: https://github.com/frankois944/android-custom-text-toolbar
- Owner: frankois944
- Created: 2024-09-22T13:42:52.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-02-18T10:22:25.000Z (5 months ago)
- Last Synced: 2025-02-18T10:24:23.541Z (5 months ago)
- Topics: compose, contextual, kotlin, texttoolbar
- Language: Kotlin
- Homepage:
- Size: 519 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# demo-test-tech
This sample replace the default contextual menu of a selected text on Compose Android/CMP by a custom one.
This sample uses Compose multiplatform, but it can also work with Compose for Android / iOS.
I have replaced the contextual menu when selecting some text to add more text manipulation than the default one.
The dialog for adding a link could be avoided (and replaced), but it will complicate the code.
Also, there are some edge cases when manipulating the link that need to be debugged.
Waiting for update of the Text Editor and Compose for iOS
References :
- [Entry point of the code](composeApp/src/commonMain/kotlin/fr/francoisdabonot/texttoolbareditordemo/App.kt)
- [Text editor engine](https://github.com/MohamedRejeb/compose-rich-editor)Some screens
|  |  |
|----------------------------------------|------------------------------------------|
|  | |