diff --git a/projects/editor/src/app/text-editor/extensions/bullet-list.ts b/projects/editor/src/app/text-editor/extensions/bullet-list.ts index 59c8679e28a574a4f109672ed8d384be4e763e68..54cd0538cf8d86949e636e174faf89b34d3bad1e 100644 --- a/projects/editor/src/app/text-editor/extensions/bullet-list.ts +++ b/projects/editor/src/app/text-editor/extensions/bullet-list.ts @@ -11,6 +11,8 @@ declare module '@tiptap/core' { } export const BulletListExtension = BulletList.extend({ + name: 'BulletListExtension', + addAttributes() { return { listStyle: { diff --git a/projects/editor/src/app/text-editor/extensions/font-size.ts b/projects/editor/src/app/text-editor/extensions/font-size.ts index 6a65bfccea5c2411663b4d194d0efe154c1e1a4c..098ced8b2b7a374c5fc8c14dfaedf7530255f91a 100644 --- a/projects/editor/src/app/text-editor/extensions/font-size.ts +++ b/projects/editor/src/app/text-editor/extensions/font-size.ts @@ -10,6 +10,8 @@ declare module '@tiptap/core' { } export const FontSizeExtension = TextStyle.extend({ + name: 'FontSizeExtension', + addAttributes() { return { fontSize: { diff --git a/projects/editor/src/app/text-editor/extensions/hanging-indent.ts b/projects/editor/src/app/text-editor/extensions/hanging-indent.ts index 428922d58a913b33b331647677af53a8c6e97698..7442817b58266280d3a3abfc4150bd69b6f7ca01 100644 --- a/projects/editor/src/app/text-editor/extensions/hanging-indent.ts +++ b/projects/editor/src/app/text-editor/extensions/hanging-indent.ts @@ -13,8 +13,10 @@ declare module '@tiptap/core' { export const HangingIndent = Extension.create({ name: 'hangingIndent', - defaultOptions: { - types: ['paragraph'] + addOptions() { + return { + types: ['paragraph'] + }; }, addGlobalAttributes() { diff --git a/projects/editor/src/app/text-editor/extensions/indent.ts b/projects/editor/src/app/text-editor/extensions/indent.ts index 6d2e196766a32a5a809837168553e8c10f5db539..7db3b07dbfa7873626154ae432a58918bf11ec13 100644 --- a/projects/editor/src/app/text-editor/extensions/indent.ts +++ b/projects/editor/src/app/text-editor/extensions/indent.ts @@ -19,10 +19,12 @@ declare module '@tiptap/core' { export const Indent = Extension.create<IndentOptions>({ name: 'indent', - defaultOptions: { - types: ['listItem', 'paragraph'], - minLevel: 0, - maxLevel: 8 + addOptions() { + return { + types: ['listItem', 'paragraph'], + minLevel: 0, + maxLevel: 8 + }; }, addGlobalAttributes() { diff --git a/projects/editor/src/app/text-editor/extensions/orderedList-extension.ts b/projects/editor/src/app/text-editor/extensions/orderedList-extension.ts index b3785201e96ec72a2bb47e06be62828c94ce3889..a410c265d08a5b493f218350787bff88aa7266f9 100644 --- a/projects/editor/src/app/text-editor/extensions/orderedList-extension.ts +++ b/projects/editor/src/app/text-editor/extensions/orderedList-extension.ts @@ -11,6 +11,8 @@ declare module '@tiptap/core' { } export const OrderedListExtension = OrderedList.extend({ + name: 'OrderedListExtension', + addAttributes() { return { listStyle: { diff --git a/projects/editor/src/app/text-editor/extensions/paragraph-extension.ts b/projects/editor/src/app/text-editor/extensions/paragraph-extension.ts index a3c0f4b3ef8fd39d2848284487f736baf00347d6..ca9a2578639c0f53c98dbc14d437aeaa8c4d6765 100644 --- a/projects/editor/src/app/text-editor/extensions/paragraph-extension.ts +++ b/projects/editor/src/app/text-editor/extensions/paragraph-extension.ts @@ -10,7 +10,7 @@ declare module '@tiptap/core' { } } -export const paragraphExtension = Paragraph.extend({ +export const ParagraphExtension = Paragraph.extend({ addAttributes() { return { margin: {