Browse Source

fix remove author color button when nothing is selected

master
stoppegp 9 months ago
parent
commit
5f7bc9fca5
1 changed files with 1 additions and 1 deletions
  1. 2
      www/code/inner.js

2
www/code/inner.js

@ -305,7 +305,7 @@ define([
$removeAuthorColorsButton.click(function() {
selfrom = editor.getCursor("from");
selto = editor.getCursor("to");
if (selfrom == selto) {
if (!editor.somethingSelected() || selfrom == selto) {
editor.getAllMarks().forEach(marker => marker.clear());
} else {
editor.findMarks(selfrom, selto).forEach(marker => marker.clear());

Loading…
Cancel
Save