Skip to content

Commit

Permalink
fix: bump priority of text-style extension fixes #4742
Browse files Browse the repository at this point in the history
  • Loading branch information
nperez0111 committed Aug 7, 2024
1 parent 535dccc commit 726fcfb
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/loud-rockets-film.md
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions packages/core/src/Extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/Mark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/Node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions packages/extension-text-style/src/text-style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ declare module '@tiptap/core' {
export const TextStyle = Mark.create<TextStyleOptions>({
name: 'textStyle',

// priority: 101,

addOptions() {
return {
HTMLAttributes: {},
Expand Down

0 comments on commit 726fcfb

Please sign in to comment.