mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-07 09:25:29 +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
|
* The priority of your extension. The higher, the later it will be called
|
||||||
* and will take precedence over other extensions with a lower priority.
|
* and will take precedence over other extensions with a lower priority.
|
||||||
* @default 1000
|
* @default 100
|
||||||
* @example 1001
|
* @example 101
|
||||||
*/
|
*/
|
||||||
priority?: number
|
priority?: number
|
||||||
|
|
||||||
|
@ -37,8 +37,8 @@ declare module '@tiptap/core' {
|
|||||||
/**
|
/**
|
||||||
* The priority of your extension. The higher, the later it will be called
|
* The priority of your extension. The higher, the later it will be called
|
||||||
* and will take precedence over other extensions with a lower priority.
|
* and will take precedence over other extensions with a lower priority.
|
||||||
* @default 1000
|
* @default 100
|
||||||
* @example 1001
|
* @example 101
|
||||||
*/
|
*/
|
||||||
priority?: number
|
priority?: number
|
||||||
|
|
||||||
|
@ -38,8 +38,8 @@ declare module '@tiptap/core' {
|
|||||||
/**
|
/**
|
||||||
* The priority of your extension. The higher, the later it will be called
|
* The priority of your extension. The higher, the later it will be called
|
||||||
* and will take precedence over other extensions with a lower priority.
|
* and will take precedence over other extensions with a lower priority.
|
||||||
* @default 1000
|
* @default 100
|
||||||
* @example 1001
|
* @example 101
|
||||||
*/
|
*/
|
||||||
priority?: number
|
priority?: number
|
||||||
|
|
||||||
|
@ -33,6 +33,8 @@ declare module '@tiptap/core' {
|
|||||||
export const TextStyle = Mark.create<TextStyleOptions>({
|
export const TextStyle = Mark.create<TextStyleOptions>({
|
||||||
name: 'textStyle',
|
name: 'textStyle',
|
||||||
|
|
||||||
|
priority: 101,
|
||||||
|
|
||||||
addOptions() {
|
addOptions() {
|
||||||
return {
|
return {
|
||||||
HTMLAttributes: {},
|
HTMLAttributes: {},
|
||||||
|
Loading…
Reference in New Issue
Block a user