Fix links in spoilers

This commit is contained in:
Sinclair Chen 2022-10-03 11:55:10 -07:00
parent 59b128dbe7
commit 67de983aac
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ export const TiptapSpoiler = Mark.create<SpoilerOptions>({
exitable: true,
content: 'inline*',
priority: 200, // higher priority than other formatting so they go inside
priority: 1001, // higher priority than other formatting so they go inside
addOptions() {
return {

View File

@ -343,7 +343,7 @@ export function RichContent(props: {
TiptapSpoiler.configure({
spoilerOpenClass: 'rounded-sm bg-greyscale-2 cursor-text',
spoilerCloseClass:
'rounded-sm bg-greyscale-6 text-greyscale-6 cursor-pointer select-none',
'rounded-sm bg-greyscale-6 text-transparent [&_*]:invisible cursor-pointer select-none',
}),
],
content,