Skip to content

Commit 843344f

Browse files
leekelleherCopilot
andauthored
Tiptap RTE: Unbundled "Rich Text Essentials" - Toggle basics on/off per data type (#20042)
* Tiptap RTE: Starter Kit separation - Created extensions for each Tiptap capability/extension - Deprecated native `StarterKit` Tiptap extension - Re-organized all Tiptap extensions into their own feature folders - Other minor amends/tweaks to improve accessibility * Update src/Umbraco.Web.UI.Client/src/packages/tiptap/extensions/view-source/manifests.ts Co-authored-by: Copilot <[email protected]> * Update src/Umbraco.Web.UI.Client/src/packages/tiptap/property-editors/toolbar-configuration/property-editor-ui-tiptap-toolbar-configuration.element.ts Co-authored-by: Copilot <[email protected]> * Update src/Umbraco.Web.UI.Client/src/packages/tiptap/property-editors/statusbar-configuration/property-editor-ui-tiptap-statusbar-configuration.element.ts Co-authored-by: Copilot <[email protected]> * Minor lint * Mark the "external" Tiptap exports as deprecated --------- Co-authored-by: Copilot <[email protected]>
1 parent ae44f30 commit 843344f

File tree

198 files changed

+2129
-1042
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

198 files changed

+2129
-1042
lines changed

src/Umbraco.Web.UI.Client/package-lock.json

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Umbraco.Web.UI.Client/src/assets/lang/en.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2792,6 +2792,7 @@ export default {
27922792
config_statusbar: 'Statusbar',
27932793
config_toolbar: 'Toolbar',
27942794
extGroup_formatting: 'Text formatting',
2795+
extGroup_html: 'HTML',
27952796
extGroup_interactive: 'Interactive elements',
27962797
extGroup_media: 'Embeds and media',
27972798
extGroup_structure: 'Content structure',

src/Umbraco.Web.UI.Client/src/external/tiptap/extensions/tiptap-anchor.extension.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Node, mergeAttributes } from '@tiptap/core';
22

3+
/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
34
export const Anchor = Node.create({
45
name: 'anchor',
56

src/Umbraco.Web.UI.Client/src/external/tiptap/extensions/tiptap-div.extension.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Node, mergeAttributes } from '@tiptap/core';
22

3+
/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
34
export interface DivOptions {
45
/**
56
* HTML attributes to add to the element.
@@ -9,6 +10,7 @@ export interface DivOptions {
910
HTMLAttributes: Record<string, any>;
1011
}
1112

13+
/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
1214
export const Div = Node.create<DivOptions>({
1315
name: 'div',
1416

src/Umbraco.Web.UI.Client/src/external/tiptap/extensions/tiptap-figcaption.extension.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Node } from '@tiptap/core';
22

3+
/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
34
export interface FigcaptionOptions {
45
/**
56
* HTML attributes to add to the image element.
@@ -9,6 +10,7 @@ export interface FigcaptionOptions {
910
HTMLAttributes: Record<string, any>;
1011
}
1112

13+
/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
1214
export const Figcaption = Node.create<FigcaptionOptions>({
1315
name: 'figcaption',
1416

src/Umbraco.Web.UI.Client/src/external/tiptap/extensions/tiptap-figure.extension.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { mergeAttributes, Node } from '@tiptap/core';
22

3+
/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
34
export interface FigureOptions {
45
/**
56
* HTML attributes to add to the image element.
@@ -9,6 +10,7 @@ export interface FigureOptions {
910
HTMLAttributes: Record<string, any>;
1011
}
1112

13+
/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
1214
export const Figure = Node.create<FigureOptions>({
1315
name: 'figure',
1416
group: 'block',

src/Umbraco.Web.UI.Client/src/external/tiptap/extensions/tiptap-html-global-attributes.extension.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ function camelCaseToKebabCase(str: string): string {
1010
return str.replace(/[A-Z]+(?![a-z])|[A-Z]/g, ($, ofs) => (ofs ? '-' : '') + $.toLowerCase());
1111
}
1212

13+
/** @deprecated No longer used internally. This will be removed in Umbraco 17. [LK] */
1314
export interface HtmlGlobalAttributesOptions {
1415
/**
1516
* The types where the text align attribute can be applied.
@@ -19,6 +20,7 @@ export interface HtmlGlobalAttributesOptions {
1920
types: Array<string>;
2021
}
2122

23+
/** @deprecated No longer used internally. This will be removed in Umbraco 17. [LK] */
2224
export const HtmlGlobalAttributes = Extension.create<HtmlGlobalAttributesOptions>({
2325
name: 'htmlGlobalAttributes',
2426

src/Umbraco.Web.UI.Client/src/external/tiptap/extensions/tiptap-span.extension.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Mark, mergeAttributes } from '@tiptap/core';
22

3+
/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
34
export interface SpanOptions {
45
/**
56
* HTML attributes to add to the span element.
@@ -34,6 +35,7 @@ function serializeStyles(items: Record<string, string>): string {
3435
);
3536
}
3637

38+
/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
3739
export const Span = Mark.create<SpanOptions>({
3840
name: 'span',
3941

src/Umbraco.Web.UI.Client/src/external/tiptap/extensions/tiptap-text-direction-extension.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import { Extension } from '@tiptap/core';
22

3+
/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
34
export interface TextDirectionOptions {
45
directions: Array<'auto' | 'ltr' | 'rtl'>;
56
types: Array<string>;
67
}
78

9+
/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
810
export const TextDirection = Extension.create<TextDirectionOptions>({
911
name: 'textDirection',
1012

src/Umbraco.Web.UI.Client/src/external/tiptap/extensions/tiptap-text-indent-extension.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ import type { EditorState, Transaction } from '@tiptap/pm/state';
1111
import { Extension } from '@tiptap/core';
1212
import { AllSelection, TextSelection } from '@tiptap/pm/state';
1313

14+
/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
1415
export interface TextIndentOptions {
1516
minLevel: number;
1617
maxLevel: number;
1718
types: Array<string>;
1819
}
1920

21+
/** @deprecated This will be relocated in Umbraco 17 to the "@umbraco-cms/backoffice/tiptap" module. [LK] */
2022
export const TextIndent = Extension.create<TextIndentOptions>({
2123
name: 'textIndent',
2224

0 commit comments

Comments
 (0)