Skip to content

Enhanced MdInput #1010

@tomrule007

Description

@tomrule007

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

autoresize-demo

  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    UXUser ExperienceenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions