const Editor = { oninit: function(vnode) { this.editor = null }, oncreate: function(vnode) { this.editor = new window.EditorJS({ holder: vnode.dom, inlineToolbar: ['link', 'bold', 'inlineCode', 'italic'], tools: { inlineCode: { class: window.InlineCode, // shortcut: 'CMD+SHIFT+M', }, header: window.Header, image: window.SimpleImage, quote: window.Quote, code: window.CodeTool, list: { class: window.List, inlineToolbar: true, config: { defaultStyle: 'unordered' } }, delimiter: window.Delimiter, htmlraw: window.RawTool, }, }) }, view: function(vnode) { return m('div') } } module.exports = Editor