From cda3a8e5b22678b0d0155b02c8841d4ce8e9d929 Mon Sep 17 00:00:00 2001 From: Jan Skovgaard <1932158+BatJan@users.noreply.github.com> Date: Tue, 29 Apr 2025 22:03:16 +0200 Subject: [PATCH] Fix code alignment The Codeblock seems to have had an extra tab, making it look like it was part of the first defined const - Making it confusing on the eyes :-) --- ...egrating-context-with-a-property-editor.md | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/15/umbraco-cms/tutorials/creating-a-property-editor/integrating-context-with-a-property-editor.md b/15/umbraco-cms/tutorials/creating-a-property-editor/integrating-context-with-a-property-editor.md index 3172349dba9..db85f4c27ca 100644 --- a/15/umbraco-cms/tutorials/creating-a-property-editor/integrating-context-with-a-property-editor.md +++ b/15/umbraco-cms/tutorials/creating-a-property-editor/integrating-context-with-a-property-editor.md @@ -142,25 +142,25 @@ constructor() { ... const trimmed = (this.value as string).substring(0, this._maxChars); - const modalHandler = this.#modalManagerContext?.open(this, UMB_CONFIRM_MODAL, - { - data: { - headline: `Trim text`, - content: `Do you want to trim the text to "${trimmed}"?`, - color: "danger", - confirmLabel: "Trim", - } + const modalHandler = this.#modalManagerContext?.open(this, UMB_CONFIRM_MODAL, + { + data: { + headline: `Trim text`, + content: `Do you want to trim the text to "${trimmed}"?`, + color: "danger", + confirmLabel: "Trim", } - ); - modalHandler?.onSubmit().then(() => { - this.value = trimmed; - this.#dispatchChangeEvent(); - const data: UmbNotificationDefaultData = { - headline: `Text trimmed`, - message: `You trimmed the text!`, - }; - this.#notificationContext?.peek("positive", { data }); - }, null); + } + ); + modalHandler?.onSubmit().then(() => { + this.value = trimmed; + this.#dispatchChangeEvent(); + const data: UmbNotificationDefaultData = { + headline: `Text trimmed`, + message: `You trimmed the text!`, + }; + this.#notificationContext?.peek("positive", { data }); + }, null); } ``` {% endcode %}