Resolve bugs on changing the style of paragraphs in CKEditor

This commit is contained in:
Aljaž Grilc 2024-04-17 14:47:35 +02:00
parent 64b53fbf51
commit 7609bb8191

View File

@ -666,7 +666,7 @@ class BesCKService extends BesService {
this.ckEditorInstance.model.document.on('change:data', () => {
const differ = this.ckEditorInstance.model.document.differ
const changes = Array.from(differ.getChanges())
// TODO: on font style changes etc.
// TODO: Repostion mistakes after image is inserted (need some further research on this topic)
for (const entry of changes) {
if (entry.type === 'insert' || entry.type === 'remove') {
const insertedElement = entry.name
@ -676,6 +676,7 @@ class BesCKService extends BesService {
entry.attributes.has('listIndent') ||
entry.name === 'blockQuote'
) {
this.clearAllMistakes(this.scrollPanel)
setTimeout(() => {
this.proof(hostElement)
window.dispatchEvent(new Event('resize'))