|
@@ -318,8 +318,8 @@ function initCreateNote() {
|
|
|
function initQuillEdit(_selector = '.note-content[auto-edit]') {
|
|
|
|
|
|
$(document)
|
|
|
- .off('click.enable-edit', '.note-content:not([auto-edit])')
|
|
|
- .on('click.enable-edit', '.note-content:not([auto-edit])', function() {
|
|
|
+ .off('click.enable-edit', '.note-content:not([auto-edit]):not(.readonly)')
|
|
|
+ .on('click.enable-edit', '.note-content:not([auto-edit]):not(.readonly)', function() {
|
|
|
$(this).attr('auto-edit', 1);
|
|
|
initQuillEdit();
|
|
|
initPrimaryForm();
|