add basic lowlight extension

This commit is contained in:
Philipp Kühn
2021-04-02 00:07:40 +02:00
parent 4d882af5d7
commit 7adf1853d7
16 changed files with 476 additions and 0 deletions

View File

@@ -43,6 +43,13 @@ export default class ExtensionManager {
}
}
// console.log(extension.config.onBeforeCreate)
if (typeof extension.config.onBeforeCreate === 'function') {
console.log('JOOO')
this.editor.on('beforeCreate', extension.config.onBeforeCreate.bind(context))
}
if (typeof extension.config.onCreate === 'function') {
this.editor.on('create', extension.config.onCreate.bind(context))
}