feat: move common const for RTE to types

This commit is contained in:
Jacob Overgaard
2024-09-27 10:13:42 +02:00
parent 453b25ec24
commit 1cc43c8f03
3 changed files with 3 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
import type { UmbInputTinyMceElement } from '../../components/input-tiny-mce/input-tiny-mce.element.js';
import { UMB_BLOCK_RTE_BLOCK_LAYOUT_ALIAS } from '../../../types.js';
import { customElement, html, property, state } from '@umbraco-cms/backoffice/external/lit';
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
import { UmbPropertyValueChangeEvent } from '@umbraco-cms/backoffice/property-editor';
@@ -19,8 +20,6 @@ export interface UmbRichTextEditorValueType {
blocks: UmbBlockValueType<UmbBlockRteLayoutModel>;
}
const UMB_BLOCK_RTE_BLOCK_LAYOUT_ALIAS = 'Umbraco.TinyMCE'; // Not rich text, cause this has not been migrated [NL]
/**
* @element umb-property-editor-ui-tiny-mce
*/

View File

@@ -1,4 +1,5 @@
import type { UmbInputTiptapElement } from '../../components/input-tiptap/input-tiptap.element.js';
import { UMB_BLOCK_RTE_BLOCK_LAYOUT_ALIAS } from '../../../types.js';
import { customElement, html, property, state } from '@umbraco-cms/backoffice/external/lit';
import { UmbBlockRteEntriesContext, UmbBlockRteManagerContext } from '@umbraco-cms/backoffice/block-rte';
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
@@ -15,8 +16,6 @@ export interface UmbRichTextEditorValueType {
blocks: UmbBlockValueType<UmbBlockRteLayoutModel>;
}
const UMB_BLOCK_RTE_BLOCK_LAYOUT_ALIAS = 'Umbraco.TinyMCE';
const elementName = 'umb-property-editor-ui-tiptap';
/**

View File

@@ -0,0 +1 @@
export const UMB_BLOCK_RTE_BLOCK_LAYOUT_ALIAS = 'Umbraco.TinyMCE';