mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 14:13:21 +08:00
refactoring
This commit is contained in:
parent
2785278e83
commit
532e7003ce
@ -220,7 +220,7 @@ export class Editor extends EventEmitter {
|
|||||||
*/
|
*/
|
||||||
private createExtensionManager(): void {
|
private createExtensionManager(): void {
|
||||||
const coreExtensions = this.options.enableCoreExtensions
|
const coreExtensions = this.options.enableCoreExtensions
|
||||||
? Object.entries(extensions).map(([, extension]) => extension)
|
? Object.values(extensions)
|
||||||
: []
|
: []
|
||||||
const allExtensions = [...coreExtensions, ...this.options.extensions].filter(extension => {
|
const allExtensions = [...coreExtensions, ...this.options.extensions].filter(extension => {
|
||||||
return ['extension', 'node', 'mark'].includes(extension?.type)
|
return ['extension', 'node', 'mark'].includes(extension?.type)
|
||||||
|
Loading…
Reference in New Issue
Block a user