From 612b21c732251710c7779b984bd5562841fcd2e7 Mon Sep 17 00:00:00 2001 From: tophf Date: Wed, 22 Nov 2017 05:15:52 +0300 Subject: [PATCH] register colorpicker command on first use --- edit/colorpicker-helper.js | 1 + 1 file changed, 1 insertion(+) diff --git a/edit/colorpicker-helper.js b/edit/colorpicker-helper.js index 66f51e17..66c7d4e6 100644 --- a/edit/colorpicker-helper.js +++ b/edit/colorpicker-helper.js @@ -49,6 +49,7 @@ window.initColorpicker = () => { } function registerHotkey(id, hotkey) { + CodeMirror.commands.colorpicker = invokeColorpicker; const extraKeys = CodeMirror.defaults.extraKeys; for (const key in extraKeys) { if (extraKeys[key] === 'colorpicker') {