diff --git a/.changeset/loud-rockets-film.md b/.changeset/loud-rockets-film.md new file mode 100644 index 00000000000..8387cc94fc6 --- /dev/null +++ b/.changeset/loud-rockets-film.md @@ -0,0 +1,5 @@ +--- +"@tiptap/extension-text-style": patch +--- + +Give text-style extension a higher priority to have colors apply to things like underlines and strikethroughs diff --git a/packages/core/src/Extension.ts b/packages/core/src/Extension.ts index 0bcd9004de6..4da90d6eeda 100644 --- a/packages/core/src/Extension.ts +++ b/packages/core/src/Extension.ts @@ -34,8 +34,8 @@ declare module '@tiptap/core' { /** * The priority of your extension. The higher, the later it will be called * and will take precedence over other extensions with a lower priority. - * @default 1000 - * @example 1001 + * @default 100 + * @example 101 */ priority?: number diff --git a/packages/core/src/Mark.ts b/packages/core/src/Mark.ts index e731d246529..9a09508c0f1 100644 --- a/packages/core/src/Mark.ts +++ b/packages/core/src/Mark.ts @@ -37,8 +37,8 @@ declare module '@tiptap/core' { /** * The priority of your extension. The higher, the later it will be called * and will take precedence over other extensions with a lower priority. - * @default 1000 - * @example 1001 + * @default 100 + * @example 101 */ priority?: number diff --git a/packages/core/src/Node.ts b/packages/core/src/Node.ts index ce21411caeb..8a261e188b5 100644 --- a/packages/core/src/Node.ts +++ b/packages/core/src/Node.ts @@ -38,8 +38,8 @@ declare module '@tiptap/core' { /** * The priority of your extension. The higher, the later it will be called * and will take precedence over other extensions with a lower priority. - * @default 1000 - * @example 1001 + * @default 100 + * @example 101 */ priority?: number diff --git a/packages/extension-text-style/src/text-style.ts b/packages/extension-text-style/src/text-style.ts index 90c30d4d7a0..c5f7b8271c0 100644 --- a/packages/extension-text-style/src/text-style.ts +++ b/packages/extension-text-style/src/text-style.ts @@ -33,6 +33,8 @@ declare module '@tiptap/core' { export const TextStyle = Mark.create({ name: 'textStyle', + // priority: 101, + addOptions() { return { HTMLAttributes: {},