service2.js: Port CKEditor service
This commit is contained in:
11
service.js
11
service.js
@@ -806,16 +806,7 @@ class BesCKService extends BesService {
|
||||
* Updates grammar mistake markup positions.
|
||||
*/
|
||||
repositionMistakes() {
|
||||
this.children.forEach(child => {
|
||||
this.clearMistakeMarkup(child.element)
|
||||
if (child.matches) {
|
||||
child.matches.forEach(match => {
|
||||
const { clientRects, highlights } = this.addMistakeMarkup(match.range)
|
||||
match.rects = clientRects
|
||||
match.highlights = highlights
|
||||
})
|
||||
}
|
||||
})
|
||||
super.repositionMistakes()
|
||||
// window.dispatchEvent(new Event('resize'))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user