Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,10 @@
onContentError: ({ error }) => {
console.error('contentError', [error.message, error.cause]);
},
onUpdate: ({ editor }) => {
onUpdate: ({ editor, transaction }) => {
// Tiptap also fires `update` for no-op transactions (e.g. setEditable),
// which would otherwise dirty the workspace with a phantom change.
if (!transaction.docChanged) return;

Check warning on line 229 in src/Umbraco.Web.UI.Client/src/packages/tiptap/components/input-tiptap/input-tiptap.element.ts

View check run for this annotation

CodeScene Delta Analysis / CodeScene Code Health Review (v17/dev)

❌ Getting worse: Complex Method

UmbInputTiptapElement.loadEditor increases in cyclomatic complexity from 17 to 18, threshold = 9. This function has many conditional statements (e.g. if, for, while), leading to lower code health. Avoid adding more conditionals and code to it without refactoring.
this.#value = editor.getHTML();
this._runValidators();
this.dispatchEvent(new UmbChangeEvent());
Expand Down
Loading