merge origin/main into v15/feature/tiptap
This commit is contained in:
@@ -95,7 +95,7 @@ export abstract class UmbBlockEntriesContext<
|
||||
layoutEntry: BlockLayoutType,
|
||||
content: UmbBlockDataModel,
|
||||
settings: UmbBlockDataModel | undefined,
|
||||
originData: UmbBlockWorkspaceOriginData,
|
||||
originData: BlockOriginData,
|
||||
): Promise<boolean>;
|
||||
//edit?
|
||||
//editSettings
|
||||
|
||||
@@ -27,13 +27,6 @@ export abstract class UmbRteBaseElement extends UmbLitElement implements UmbProp
|
||||
this.#managerContext.setEditorConfiguration(config);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the input to readonly mode, meaning value cannot be changed but still able to read and select its content.
|
||||
* @default false
|
||||
*/
|
||||
@property({ type: Boolean, reflect: true })
|
||||
readonly = false;
|
||||
|
||||
@property({
|
||||
attribute: false,
|
||||
type: Object,
|
||||
@@ -45,6 +38,7 @@ export abstract class UmbRteBaseElement extends UmbLitElement implements UmbProp
|
||||
const buildUpValue: Partial<UmbPropertyEditorUiValueType> = value ? { ...value } : {};
|
||||
buildUpValue.markup ??= '';
|
||||
buildUpValue.blocks ??= { layout: {}, contentData: [], settingsData: [], expose: [] };
|
||||
buildUpValue.blocks.layout ??= {};
|
||||
buildUpValue.blocks.contentData ??= [];
|
||||
buildUpValue.blocks.settingsData ??= [];
|
||||
buildUpValue.blocks.expose ??= [];
|
||||
@@ -64,6 +58,13 @@ export abstract class UmbRteBaseElement extends UmbLitElement implements UmbProp
|
||||
return this._value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the input to readonly mode, meaning value cannot be changed but still able to read and select its content.
|
||||
* @default false
|
||||
*/
|
||||
@property({ type: Boolean, reflect: true })
|
||||
readonly = false;
|
||||
|
||||
@state()
|
||||
protected _config?: UmbPropertyEditorConfigCollection;
|
||||
|
||||
|
||||
@@ -114,7 +114,7 @@ export default class UmbTinyMceMultiUrlPickerPlugin extends UmbTinyMcePluginBase
|
||||
|
||||
const blockEl = `<${blockTag} ${UMB_BLOCK_RTE_DATA_CONTENT_KEY}="${block.key}"></${blockTag}>`;
|
||||
|
||||
editor.insertContent(blockEl);
|
||||
editor.selection.setContent(blockEl);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user