Add debug function to context menu

This commit is contained in:
Peter Stuifzand 2020-11-04 23:41:03 +01:00
parent 69b1b11889
commit bfbfab1605

View File

@ -52,6 +52,12 @@ function connectContextMenu(editor) {
location.href = '/edit/'+id; location.href = '/edit/'+id;
}) })
} }
},
debug: {
name: 'Debug block',
callback: function (key, opt) {
editor.copy(this, {recursive:true}).then(console.log)
}
} }
// TODO // TODO