|
@@ -62,7 +62,9 @@ function __initRTEs(_collection) {
|
|
|
pElem.find('input[name=data]').val(v);
|
|
|
};
|
|
|
|
|
|
- quill.on('text-change', onTextChange);
|
|
|
+ if(!noteRTE.is('[ignore-changes]')) {
|
|
|
+ quill.on('text-change', onTextChange);
|
|
|
+ }
|
|
|
|
|
|
$(quill.container)
|
|
|
.find('.ql-editor[contenteditable]')
|
|
@@ -71,7 +73,9 @@ function __initRTEs(_collection) {
|
|
|
.attr('with-shortcuts', 1);
|
|
|
|
|
|
// set value initially
|
|
|
- onTextChange();
|
|
|
+ if(!noteRTE.is('[ignore-changes]')) {
|
|
|
+ onTextChange();
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
|