mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-12 19:49:59 +05:00
Add typing test to kanban
This commit is contained in:
parent
a1ead719cb
commit
83f9928d19
@ -22,6 +22,7 @@ define([
|
||||
'cm/lib/codemirror',
|
||||
'/kanban/jkanban_cp.js',
|
||||
'/kanban/export.js',
|
||||
'/common/TypingTests.js',
|
||||
|
||||
'cm/mode/gfm/gfm',
|
||||
'cm/addon/edit/closebrackets',
|
||||
@ -54,7 +55,8 @@ define([
|
||||
ChainPad,
|
||||
CodeMirror,
|
||||
jKanban,
|
||||
Export)
|
||||
Export,
|
||||
TypingTest)
|
||||
{
|
||||
|
||||
var verbose = function (x) { console.log(x); };
|
||||
@ -251,6 +253,10 @@ define([
|
||||
// Body
|
||||
var cm = SFCodeMirror.create("gfm", CodeMirror, text);
|
||||
var editor = cm.editor;
|
||||
window.easyTest = function () {
|
||||
var test = TypingTest.testCode(editor);
|
||||
return test;
|
||||
};
|
||||
editor.setOption('gutters', []);
|
||||
editor.setOption('lineNumbers', false);
|
||||
editor.setOption('readOnly', false);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user