uiwjs / react-markdown-editor

A markdown editor with preview, implemented with React.js and TypeScript.
https://uiwjs.github.io/react-markdown-editor
MIT License
337 stars 34 forks source link

Setting tabIndex on MarkdownEditor doesn't work #218

Open TvrtkoM opened 7 months ago

TvrtkoM commented 7 months ago

setting tabIndex attribute / prop on Markdown editor component like this:

              <MarkdownEditor
                value={value}
                tabIndex="0"
                onChange={onChange}
              />

it doesn't set it when rendered inside the app. Setting tabIndex manually in devtools makes it work as expected

jaywcjlove commented 7 months ago

@TvrtkoM https://discuss.codemirror.net/t/is-there-a-way-to-configure-the-tabindex-of-the-textbox-without-hacking-the-source/5111/2

jaywcjlove commented 7 months ago

@TvrtkoM The editor component is encapsulated based on CodeMirror, which may be helpful to you.