refactoring

This commit is contained in:
Philipp Kühn
2018-10-30 22:46:11 +01:00
parent 35cc0a285f
commit 681c685287

View File

@@ -11,8 +11,6 @@ import { markIsActive, nodeIsActive, getMarkAttrs } from 'tiptap-utils'
import { import {
ExtensionManager, ExtensionManager,
initNodeViews, initNodeViews,
// menuBubble,
// floatingMenu,
builtInKeymap, builtInKeymap,
} from '.' } from '.'
@@ -112,13 +110,6 @@ export default class Editor {
doc: this.createDocument(this.options.content), doc: this.createDocument(this.options.content),
plugins: [ plugins: [
...this.plugins, ...this.plugins,
...this.getPlugins(),
],
})
}
getPlugins() {
const plugins = [
inputRules({ inputRules({
rules: this.inputRules, rules: this.inputRules,
}), }),
@@ -131,17 +122,8 @@ export default class Editor {
editable: () => this.options.editable, editable: () => this.options.editable,
}, },
}), }),
] ],
})
// if (this.menububbleNode) {
// plugins.push(menuBubble(this.menububbleNode))
// }
// if (this.floatingMenuNode) {
// plugins.push(floatingMenu(this.floatingMenuNode))
// }
return plugins
} }
createDocument(content) { createDocument(content) {