Use codemirror settings in kanban

This commit is contained in:
yflory
2020-03-11 16:57:56 +01:00
parent 7a91a6d606
commit a0ab44c82d
2 changed files with 58 additions and 47 deletions

View File

@@ -218,8 +218,11 @@ define([
// Body
var editor = CodeMirror.fromTextArea(text, {
allowDropFileTypes: [],
lineWrapping: true,
styleActiveLine : true,
inputStyle: 'contenteditable',
extraKeys: {"Shift-Ctrl-R": undefined},
mode: "gfm"
});
var common = framework._.sfCommon;
@@ -244,6 +247,7 @@ define([
editor.refresh();
}
};
SFCodeMirror.mkIndentSettings(editor, framework._.cpNfInner.metadataMgr);
editor.on('change', function () {
dataObject.body = editor.getValue();
commit();