Simplemde-markdown-editor: Tab key behaviour

Created on 2 Oct 2015  路  2Comments  路  Source: sparksuite/simplemde-markdown-editor

Hi,
If SimpleMDE is used in a form with many inputs some of users are very likely want to tab across the whole form. Current logic would make such user use mouth to focus out of the SimpleMDE textarea.

Is there any workaround to make "Tab" & "Shift-Tab" tab into another form input instead of indenting?

Most helpful comment

var editor = new SimpleMDE();

editor.codemirror.options.extraKeys['Tab'] = false;
editor.codemirror.options.extraKeys['Shift-Tab'] = false;

All 2 comments

At this time I do not have plans of implementing this functionality for SimpleMDE. If you'd like, you can submit a PR with this functionality attached to an optional boolean option.

var editor = new SimpleMDE();

editor.codemirror.options.extraKeys['Tab'] = false;
editor.codemirror.options.extraKeys['Shift-Tab'] = false;
Was this page helpful?
0 / 5 - 0 ratings

Related issues

mbeckenbach picture mbeckenbach  路  4Comments

prologic picture prologic  路  4Comments

garethrbrown picture garethrbrown  路  5Comments

andrelgarcia picture andrelgarcia  路  4Comments

slince picture slince  路  4Comments