From bfbfab1605697e1cee53e38d40247c8fa2e96afb Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Wed, 4 Nov 2020 23:41:03 +0100 Subject: [PATCH] Add debug function to context menu --- editor/src/menu.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/editor/src/menu.js b/editor/src/menu.js index 9b81760..99482f9 100644 --- a/editor/src/menu.js +++ b/editor/src/menu.js @@ -52,6 +52,12 @@ function connectContextMenu(editor) { location.href = '/edit/'+id; }) } + }, + debug: { + name: 'Debug block', + callback: function (key, opt) { + editor.copy(this, {recursive:true}).then(console.log) + } } // TODO