-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
add multiline and rich editing to text fields Fix458 #2498
Conversation
Deploy preview for hasura-docs ready! Built with commit 921ccd3 |
Review app for commit 501a328 deployed to Heroku: https://hge-ci-pull-2498.herokuapp.com |
Review app for commit f936de1 deployed to Heroku: https://hge-ci-pull-2498.herokuapp.com |
Review app https://hge-ci-pull-2498.herokuapp.com is deleted |
Review app for commit 921ccd3 deployed to Heroku: https://hge-ci-pull-2498.herokuapp.com |
#2281 # Description
This change uses the ACE editor already used for the JSON editor to edit text in several rich styles - as single line text, as multiline text, or with markdown or html syntax coloring support.
Affected components
Related Issues
#458
This PR replaces PR #1155
Solution and Design
Simply uses the pattern established by JsonInput.js
It would be best practice to refactor JsonInput, TextInput, and some notional BooleanInput into a common superclass, but that wasn't my marching orders.
Steps to test and verify
make a table with text type column
insert a row
use the widget in UR of entry area to cycle through styles
Limitations, known bugs & workarounds
We cycle through the modes with the button. This is a design compromise worked out by Anu and I as consistent with the JSON one and simple to implement. If we ever want to expand the list it'll become cumbersome, but we can change to a drop down menu at that time.