Fix: avoid return short circuit for editor selection
This commit is contained in:
parent
2edd22e37c
commit
92cadc03fa
16
edit/edit.js
16
edit/edit.js
|
@ -998,11 +998,11 @@ function jumpToLine(cm) {
|
|||
}
|
||||
|
||||
function toggleStyle() {
|
||||
if (!editor) {
|
||||
toggleSectionStyle();
|
||||
return;
|
||||
}
|
||||
if (editor) {
|
||||
editor.toggleStyle();
|
||||
} else {
|
||||
toggleSectionStyle();
|
||||
}
|
||||
}
|
||||
|
||||
function toggleSectionStyle() {
|
||||
|
@ -1560,11 +1560,11 @@ function updateLintReportIfEnabled(...args) {
|
|||
}
|
||||
|
||||
function save() {
|
||||
if (!editor) {
|
||||
saveSectionStyle();
|
||||
return;
|
||||
}
|
||||
if (editor) {
|
||||
editor.save();
|
||||
} else {
|
||||
saveSectionStyle();
|
||||
}
|
||||
}
|
||||
|
||||
function saveSectionStyle() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user