@phuong-tran-redoc/document-engine-angular 0.0.32 → 0.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6136,7 +6136,6 @@ class TiptapEditorDirective {
|
|
|
6136
6136
|
_editor;
|
|
6137
6137
|
initialEditableState;
|
|
6138
6138
|
set editor(editor) {
|
|
6139
|
-
console.log('set editor', editor);
|
|
6140
6139
|
this._editor = editor;
|
|
6141
6140
|
// Store initial editable state immediately when editor is set
|
|
6142
6141
|
// This ensures we capture the state before any Forms API calls
|
|
@@ -6165,7 +6164,6 @@ class TiptapEditorDirective {
|
|
|
6165
6164
|
if (typeof value === 'string' && this.htmlPreprocessor) {
|
|
6166
6165
|
processedValue = this.htmlPreprocessor(value);
|
|
6167
6166
|
}
|
|
6168
|
-
console.log('writeValue', value);
|
|
6169
6167
|
this.editor.chain().setContent(processedValue, { emitUpdate: false }).run();
|
|
6170
6168
|
}
|
|
6171
6169
|
// Registers a callback function that is called when the control's value changes in the UI.
|
|
@@ -6191,7 +6189,6 @@ class TiptapEditorDirective {
|
|
|
6191
6189
|
this.renderer.setProperty(this.elRef.nativeElement, 'disabled', isDisabled);
|
|
6192
6190
|
}
|
|
6193
6191
|
handleChange = ({ editor, transaction }) => {
|
|
6194
|
-
console.log('handleChange', transaction.docChanged);
|
|
6195
6192
|
if (!transaction.docChanged)
|
|
6196
6193
|
return;
|
|
6197
6194
|
// Needed for ChangeDetectionStrategy.OnPush to get notified about changes
|
|
@@ -6206,7 +6203,6 @@ class TiptapEditorDirective {
|
|
|
6206
6203
|
const editor = this.editor;
|
|
6207
6204
|
// take the inner contents and clear the block
|
|
6208
6205
|
const { innerHTML } = this.elRef.nativeElement;
|
|
6209
|
-
console.log('inner html', innerHTML);
|
|
6210
6206
|
this.elRef.nativeElement.innerHTML = '';
|
|
6211
6207
|
// insert the editor in the dom
|
|
6212
6208
|
this.elRef.nativeElement.append(...Array.from(editor.options.element?.childNodes || []));
|
|
@@ -6222,7 +6218,6 @@ class TiptapEditorDirective {
|
|
|
6222
6218
|
editor.on('blur', () => {
|
|
6223
6219
|
this.onTouched();
|
|
6224
6220
|
});
|
|
6225
|
-
console.log('Update change!');
|
|
6226
6221
|
// register update handler to listen to changes on update
|
|
6227
6222
|
editor.on('update', this.handleChange);
|
|
6228
6223
|
// Needed for ChangeDetectionStrategy.OnPush to get notified
|