Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function createBaklava(element: Element): PluginRendererVue.ViewPlugin {
Vue.use(PluginRendererVue.BaklavaVuePlugin);
const editor = new Core.Editor();
const plugin = new PluginRendererVue.ViewPlugin();
editor.use(plugin);
new Vue({
render: (h) => h("baklava-editor", { props: { plugin } }),
}).$mount(element);
return plugin;
}