merge origin/main into v15/feature/tiptap

This commit is contained in:
Jacob Overgaard
2024-09-30 13:57:46 +02:00
parent 7c575b914f
commit d5bf2f423e
3 changed files with 10 additions and 9 deletions

View File

@@ -95,7 +95,7 @@ export abstract class UmbBlockEntriesContext<
layoutEntry: BlockLayoutType,
content: UmbBlockDataModel,
settings: UmbBlockDataModel | undefined,
originData: UmbBlockWorkspaceOriginData,
originData: BlockOriginData,
): Promise<boolean>;
//edit?
//editSettings

View File

@@ -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;

View File

@@ -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);
});
}
}