mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
fix remove author color button when nothing is selected
This commit is contained in:
parent
8696ecc692
commit
5f7bc9fca5
@ -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…
Reference in New Issue
Block a user