mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
add Esc option to Form description text field #1636
This commit is contained in:
parent
421ea5dbfa
commit
e75dd7c5de
@ -1097,6 +1097,11 @@ define([
|
||||
block = h('div.cp-form-edit-options-block', [t]);
|
||||
cm = SFCodeMirror.create("gfm", CMeditor, t);
|
||||
editor = cm.editor;
|
||||
editor.setOption("extraKeys", {
|
||||
"Esc": function () {
|
||||
editor.display.input.blur();
|
||||
},
|
||||
});
|
||||
editor.setOption('lineNumbers', true);
|
||||
editor.setOption('lineWrapping', true);
|
||||
editor.setOption('styleActiveLine', true);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user