diff --git a/src/Umbraco.Web.UI.Client/src/packages/rte/tiptap/components/input-tiptap/input-tiptap.element.ts b/src/Umbraco.Web.UI.Client/src/packages/rte/tiptap/components/input-tiptap/input-tiptap.element.ts index 95ecea0805..f82d551198 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/rte/tiptap/components/input-tiptap/input-tiptap.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/rte/tiptap/components/input-tiptap/input-tiptap.element.ts @@ -105,10 +105,9 @@ export class UmbInputTiptapElement extends UmbFormControlMixin('maxWidth'); - const maxHeight = this.configuration?.getValueByAlias('maxHeight'); - if (maxWidth) this.setAttribute('style', `max-width: ${maxWidth}px;`); - if (maxHeight) element.setAttribute('style', `max-height: ${maxHeight}px;`); + const dimensions = this.configuration?.getValueByAlias<{ width?: number; height?: number }>('dimensions'); + if (dimensions?.width) this.setAttribute('style', `max-width: ${dimensions.width}px;`); + if (dimensions?.height) element.setAttribute('style', `max-height: ${dimensions.height}px;`); this._toolbar = this.configuration?.getValueByAlias('toolbar') ?? [[[]]]; diff --git a/src/Umbraco.Web.UI.Client/src/packages/rte/tiptap/property-editors/tiptap/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/rte/tiptap/property-editors/tiptap/manifests.ts index e3c51f2e65..0dfc51e663 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/rte/tiptap/property-editors/tiptap/manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/rte/tiptap/property-editors/tiptap/manifests.ts @@ -28,19 +28,12 @@ export const manifests: Array = [ weight: 10, }, { - alias: 'maxWidth', - label: 'MaxWidth', - description: 'Editor max width', - propertyEditorUiAlias: 'Umb.PropertyEditorUi.Integer', + alias: 'dimensions', + label: 'Dimensions', + description: 'Set the maximum width and height of the editor', + propertyEditorUiAlias: 'Umb.PropertyEditorUI.TinyMCE.DimensionsConfiguration', weight: 20, }, - { - alias: 'maxHeight', - label: 'MaxHeight', - description: 'Editor max height', - propertyEditorUiAlias: 'Umb.PropertyEditorUi.Integer', - weight: 30, - }, { alias: 'maxImageSize', label: 'Maximum size for inserted images',