Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions src/Umbraco.Web.UI.Client/src/assets/lang/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2773,6 +2773,7 @@ export default {
wordWrapConfigDescription: 'Enable word wrapping in the code editor.',
},
rte: {
label: 'Rich Text Editor',
config_blocks: 'Available Blocks',
config_blocks_description: 'Define the available blocks.',
config_ignoreUserStartNodes: 'Ignore User Start Nodes',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,12 @@
this._editor = new Editor({
element: element,
editable: !this.readonly,
editorProps: { attributes: { 'aria-label': this.label ?? 'Rich Text Editor' } },
editorProps: {
attributes: {
'aria-label': this.label || this.localize.term('rte_label'),
'aria-required': this.required ? 'true' : 'false',
},
},

Check warning on line 181 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 Cloud Delta Analysis (main)

❌ Getting worse: Complex Method

UmbInputTiptapElement.loadEditor increases in cyclomatic complexity from 13 to 15, 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.
extensions: tiptapExtensions,
content: this.#value,
injectCSS: false, // Prevents injecting CSS into `window.document`, as it never applies to the shadow DOM. [LK]
Expand Down
Loading