mirror of
https://github.com/linsa-io/linsa.git
synced 2026-04-27 02:38:45 +02:00
Move to TanStack Start from Next.js (#184)
This commit is contained in:
1
web/shared/la-editor/extensions/paragraph/index.ts
Normal file
1
web/shared/la-editor/extensions/paragraph/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from "./paragraph"
|
||||
14
web/shared/la-editor/extensions/paragraph/paragraph.ts
Normal file
14
web/shared/la-editor/extensions/paragraph/paragraph.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { Paragraph as TiptapParagraph } from "@tiptap/extension-paragraph"
|
||||
|
||||
export const Paragraph = TiptapParagraph.extend({
|
||||
addOptions() {
|
||||
return {
|
||||
...this.parent?.(),
|
||||
HTMLAttributes: {
|
||||
class: "text-node",
|
||||
},
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
export default Paragraph
|
||||
Reference in New Issue
Block a user