mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-24 03:39:01 +08:00
parent
be63e59050
commit
c0e631f875
5
.changeset/loud-rockets-film.md
Normal file
5
.changeset/loud-rockets-film.md
Normal 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
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -33,6 +33,8 @@ declare module '@tiptap/core' {
|
||||
export const TextStyle = Mark.create<TextStyleOptions>({
|
||||
name: 'textStyle',
|
||||
|
||||
priority: 101,
|
||||
|
||||
addOptions() {
|
||||
return {
|
||||
HTMLAttributes: {},
|
||||
|
Loading…
Reference in New Issue
Block a user