-
Notifications
You must be signed in to change notification settings - Fork 70
Description
Enhanced MdInput
Fix issue with input box size not saving size (Issue #869) and add additional features using Github's comment box as a target spec.
Complete
- min-height 100px / max-height 500px
- Autosize to fit content
- Disables autosize after user resize event
- Saves all state when switching back and forth to preview mode
- size
- scroll location
- focus and selected text
- preserve undo old text (ctrl+z)
see pr: #1011
TODO
New Markdown buttons that insert/delete markdown styles around selected text
(with hotkeys that only work while textbox is focused)
-
Header
### <text> -
bold (hotkey: ctrl+b)
**<text>** -
italic (hotkey: ctrl+i)
_<text>_ -
quote (hotkey: ctrl+b)
\n\n> <text>\n\n -
code (hotkey: ctrl+e)
**<text>** -
link (hotkey: ctrl+k)
[<text>](url)*Updates selected text to url -
bullet list
- <text> -
ordered list
1. <text> -
task list\n\n- [ ] <text>\n\n
*Opted to not include task list since comments are currently not editable -
Auto continue lists on return
-
Make responsive - Inline with write/preview tabs on large screen below tabs on small screens
Other extras
- prop to enable local store persist
