Improve event handling for CKEditor plugins
This commit is contained in:
parent
7609bb8191
commit
1e46ef97ea
12
service.js
12
service.js
@ -705,6 +705,18 @@ class BesCKService extends BesService {
|
|||||||
this.proof(hostElement)
|
this.proof(hostElement)
|
||||||
}, 500)
|
}, 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)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user