Resolve bugs on changing the style of paragraphs in CKEditor
This commit is contained in:
parent
64b53fbf51
commit
7609bb8191
@ -666,7 +666,7 @@ class BesCKService extends BesService {
|
|||||||
this.ckEditorInstance.model.document.on('change:data', () => {
|
this.ckEditorInstance.model.document.on('change:data', () => {
|
||||||
const differ = this.ckEditorInstance.model.document.differ
|
const differ = this.ckEditorInstance.model.document.differ
|
||||||
const changes = Array.from(differ.getChanges())
|
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) {
|
for (const entry of changes) {
|
||||||
if (entry.type === 'insert' || entry.type === 'remove') {
|
if (entry.type === 'insert' || entry.type === 'remove') {
|
||||||
const insertedElement = entry.name
|
const insertedElement = entry.name
|
||||||
@ -676,6 +676,7 @@ class BesCKService extends BesService {
|
|||||||
entry.attributes.has('listIndent') ||
|
entry.attributes.has('listIndent') ||
|
||||||
entry.name === 'blockQuote'
|
entry.name === 'blockQuote'
|
||||||
) {
|
) {
|
||||||
|
this.clearAllMistakes(this.scrollPanel)
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.proof(hostElement)
|
this.proof(hostElement)
|
||||||
window.dispatchEvent(new Event('resize'))
|
window.dispatchEvent(new Event('resize'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user