mirror of
https://github.com/linsa-io/linsa.git
synced 2026-04-20 15:31:30 +02:00
Move to TanStack Start from Next.js (#184)
This commit is contained in:
13
web/shared/la-editor/extensions/dropcursor/dropcursor.ts
Normal file
13
web/shared/la-editor/extensions/dropcursor/dropcursor.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Dropcursor as TiptapDropcursor } from "@tiptap/extension-dropcursor"
|
||||
|
||||
export const Dropcursor = TiptapDropcursor.extend({
|
||||
addOptions() {
|
||||
return {
|
||||
...this.parent?.(),
|
||||
width: 2,
|
||||
class: "ProseMirror-dropcursor border",
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
export default Dropcursor
|
||||
Reference in New Issue
Block a user