fix: emoji replacement
This commit is contained in:
parent
c19dd3ee0f
commit
dc94d707b0
7 changed files with 40 additions and 4 deletions
|
@ -24,6 +24,9 @@ export const Emoji = Node.create({
|
|||
native: {
|
||||
default: null,
|
||||
},
|
||||
fallback: {
|
||||
default: null,
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -38,6 +41,7 @@ export const Emoji = Node.create({
|
|||
type: this.name,
|
||||
attrs: {
|
||||
native: name,
|
||||
fallback: name,
|
||||
},
|
||||
})
|
||||
},
|
||||
|
@ -51,7 +55,10 @@ export const Emoji = Node.create({
|
|||
type: this.type,
|
||||
getAttributes: (match) => {
|
||||
const [native] = match
|
||||
return { native }
|
||||
return {
|
||||
native,
|
||||
fallback: native,
|
||||
}
|
||||
},
|
||||
}),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue