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