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>({ export default Extension.create<IndentOptions>({
name: "indent", name: "indent",
defaultOptions: { addOptions() {
types: ["paragraph", "heading"], return {
margin: 40 types: ["paragraph", "heading"],
margin: 40
}
}, },
addGlobalAttributes() { addGlobalAttributes() {