Skip to content

Commit 6dbbe0b

Browse files
committed
merge origin/main into v15/feature/tiptap
1 parent 4974147 commit 6dbbe0b

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

src/packages/block/block/context/block-entries.context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export abstract class UmbBlockEntriesContext<
9595
layoutEntry: BlockLayoutType,
9696
content: UmbBlockDataModel,
9797
settings: UmbBlockDataModel | undefined,
98-
originData: UmbBlockWorkspaceOriginData,
98+
originData: BlockOriginData,
9999
): Promise<boolean>;
100100
//edit?
101101
//editSettings

src/packages/rte/components/rte-base.element.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,6 @@ export abstract class UmbRteBaseElement extends UmbLitElement implements UmbProp
2727
this.#managerContext.setEditorConfiguration(config);
2828
}
2929

30-
/**
31-
* Sets the input to readonly mode, meaning value cannot be changed but still able to read and select its content.
32-
* @default false
33-
*/
34-
@property({ type: Boolean, reflect: true })
35-
readonly = false;
36-
3730
@property({
3831
attribute: false,
3932
type: Object,
@@ -45,6 +38,7 @@ export abstract class UmbRteBaseElement extends UmbLitElement implements UmbProp
4538
const buildUpValue: Partial<UmbPropertyEditorUiValueType> = value ? { ...value } : {};
4639
buildUpValue.markup ??= '';
4740
buildUpValue.blocks ??= { layout: {}, contentData: [], settingsData: [], expose: [] };
41+
buildUpValue.blocks.layout ??= {};
4842
buildUpValue.blocks.contentData ??= [];
4943
buildUpValue.blocks.settingsData ??= [];
5044
buildUpValue.blocks.expose ??= [];
@@ -64,6 +58,13 @@ export abstract class UmbRteBaseElement extends UmbLitElement implements UmbProp
6458
return this._value;
6559
}
6660

61+
/**
62+
* Sets the input to readonly mode, meaning value cannot be changed but still able to read and select its content.
63+
* @default false
64+
*/
65+
@property({ type: Boolean, reflect: true })
66+
readonly = false;
67+
6768
@state()
6869
protected _config?: UmbPropertyEditorConfigCollection;
6970

src/packages/rte/tiny-mce/plugins/tiny-mce-block-picker.plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export default class UmbTinyMceMultiUrlPickerPlugin extends UmbTinyMcePluginBase
114114

115115
const blockEl = `<${blockTag} ${UMB_BLOCK_RTE_DATA_CONTENT_KEY}="${block.key}"></${blockTag}>`;
116116

117-
editor.insertContent(blockEl);
117+
editor.selection.setContent(blockEl);
118118
});
119119
}
120120
}

0 commit comments

Comments
 (0)