Upgrading TipTap indent extension
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user