Fixed #1376
This commit is contained in:
parent
f7f66ba249
commit
d2af43ac1c
@ -286,6 +286,7 @@ function cledit(contentElt, scrollEltOpt, isMarkdown = false) {
|
||||
editor.setContent(newContent, false, min);
|
||||
contentChanging = true;
|
||||
skipSaveSelection = true;
|
||||
highlighter.cancelComposition = true;
|
||||
}
|
||||
min = state.before.length;
|
||||
max = min + state.selection.length;
|
||||
|
@ -62,10 +62,11 @@ function Highlighter(editor) {
|
||||
}
|
||||
|
||||
this.parseSections = (content, isInit) => {
|
||||
if (this.isComposing) {
|
||||
if (this.isComposing && !this.cancelComposition) {
|
||||
return sectionList;
|
||||
}
|
||||
|
||||
this.cancelComposition = false;
|
||||
const newSectionList = (editor.options.sectionParser
|
||||
? editor.options.sectionParser(content)
|
||||
: [content])
|
||||
|
Loading…
Reference in New Issue
Block a user