refactoring

This commit is contained in:
Philipp Kühn 2021-09-21 20:21:12 +02:00
parent 2785278e83
commit 532e7003ce

View File

@ -220,7 +220,7 @@ export class Editor extends EventEmitter {
*/
private createExtensionManager(): void {
const coreExtensions = this.options.enableCoreExtensions
? Object.entries(extensions).map(([, extension]) => extension)
? Object.values(extensions)
: []
const allExtensions = [...coreExtensions, ...this.options.extensions].filter(extension => {
return ['extension', 'node', 'mark'].includes(extension?.type)