Improve event handling for CKEditor plugins
This commit is contained in:
12
service.js
12
service.js
@@ -705,6 +705,18 @@ class BesCKService extends BesService {
|
||||
this.proof(hostElement)
|
||||
}, 500)
|
||||
})
|
||||
this.ckEditorInstance.commands.get('bold').on('execute', () => {
|
||||
setTimeout(() => {
|
||||
this.repositionMistakes()
|
||||
window.dispatchEvent(new Event('resize'))
|
||||
}, 500)
|
||||
})
|
||||
this.ckEditorInstance.commands.get('italic').on('execute', () => {
|
||||
setTimeout(() => {
|
||||
this.repositionMistakes()
|
||||
window.dispatchEvent(new Event('resize'))
|
||||
}, 500)
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user