fix: bump priority of text-style extension fixes #4742 (#5457)

This commit is contained in:
Nick Perez 2024-08-07 15:39:49 +02:00 committed by GitHub
parent be63e59050
commit c0e631f875
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 13 additions and 6 deletions

View File

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

View File

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

View File

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

View File

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

View File

@ -33,6 +33,8 @@ declare module '@tiptap/core' {
export const TextStyle = Mark.create<TextStyleOptions>({
name: 'textStyle',
priority: 101,
addOptions() {
return {
HTMLAttributes: {},