Upgrading TipTap indent extension

This commit is contained in:
2025-05-02 00:09:56 +02:00
parent f9b6aae927
commit 87f9119b0b

View File

@@ -25,9 +25,11 @@ declare module "@tiptap/core" {
export default Extension.create<IndentOptions>({
name: "indent",
defaultOptions: {
types: ["paragraph", "heading"],
margin: 40
addOptions() {
return {
types: ["paragraph", "heading"],
margin: 40
}
},
addGlobalAttributes() {