Skip to content

Commit 9cb75e7

Browse files
committed
Switched maxImageSize to use compact editor
also sets the default config value.
1 parent 6e17a7a commit 9cb75e7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/packages/rte/tiptap/property-editors/tiptap/manifests.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@ export const manifests: Array<ManifestPropertyEditorUi> = [
3838
alias: 'maxImageSize',
3939
label: 'Maximum size for inserted images',
4040
description: 'Maximum width or height - enter 0 to disable resizing',
41-
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Integer',
41+
propertyEditorUiAlias: 'Umb.PropertyEditorUI.TinyMCE.MaxImageSizeConfiguration',
4242
weight: 40,
43-
config: [{ alias: 'min', value: 0 }],
4443
},
4544
{
4645
alias: 'overlaySize',
@@ -50,7 +49,10 @@ export const manifests: Array<ManifestPropertyEditorUi> = [
5049
weight: 50,
5150
},
5251
],
53-
defaultData: [{ alias: 'overlaySize', value: 'medium' }],
52+
defaultData: [
53+
{ alias: 'maxImageSize', value: 500 },
54+
{ alias: 'overlaySize', value: 'medium' },
55+
],
5456
},
5557
},
5658
},

0 commit comments

Comments
 (0)