diff --git a/packages/edit/package.json b/packages/edit/package.json index bb22096..b474cbc 100644 --- a/packages/edit/package.json +++ b/packages/edit/package.json @@ -38,6 +38,7 @@ "vue-tsc": "^3.0.1" }, "dependencies": { + "@intevation/tiptap-extension-office-paste": "^0.1.2", "@tiptap/extension-color": "^2.25.0", "@tiptap/extension-font-family": "^2.25.0", "@tiptap/extension-highlight": "^2.25.0", diff --git a/packages/edit/src/components/extensions/index.ts b/packages/edit/src/components/extensions/index.ts index 14f9242..6370cf4 100644 --- a/packages/edit/src/components/extensions/index.ts +++ b/packages/edit/src/components/extensions/index.ts @@ -1,6 +1,7 @@ import Color from '@tiptap/extension-color'; import FontFamily from '@tiptap/extension-font-family'; import Highlight from '@tiptap/extension-highlight'; +import OfficePaste from '@intevation/tiptap-extension-office-paste'; import Placeholder from '@tiptap/extension-placeholder'; import StarterKit from '@tiptap/starter-kit'; import Subscript from '@tiptap/extension-subscript'; @@ -20,6 +21,7 @@ import Paragraph from './paragraph.ts'; import Tooltip from './tooltip.ts'; export default [ + OfficePaste, Color, FontFamily, FontSize, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3ff6fc1..af4c875 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -66,6 +66,9 @@ importers: packages/edit: dependencies: + '@intevation/tiptap-extension-office-paste': + specifier: ^0.1.2 + version: 0.1.2(@tiptap/core@2.25.0(@tiptap/pm@2.25.0))(@tiptap/pm@2.25.0) '@tiptap/extension-color': specifier: ^2.25.0 version: 2.25.0(@tiptap/core@2.25.0(@tiptap/pm@2.25.0))(@tiptap/extension-text-style@2.25.0(@tiptap/core@2.25.0(@tiptap/pm@2.25.0))) @@ -506,6 +509,12 @@ packages: resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==} engines: {node: '>=18.18'} + '@intevation/tiptap-extension-office-paste@0.1.2': + resolution: {integrity: sha512-TtpPEXDcdhyIkMoKp84VJaUc0nuuYTKRZTnCPpifn/wtX8FgYjqXZ3lAlK9qzbg0LwdKihfVaAQ6/ui86rCkIQ==} + peerDependencies: + '@tiptap/core': ^2.10.3 || ^3.0.0 + '@tiptap/pm': ^2.10.3 || ^3.0.0 + '@isaacs/balanced-match@4.0.1': resolution: {integrity: sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==} engines: {node: 20 || >=22} @@ -3579,6 +3588,7 @@ packages: source-map@0.8.0-beta.0: resolution: {integrity: sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==} engines: {node: '>= 8'} + deprecated: The work that was done in this beta branch won't be included in future versions spawndamnit@3.0.1: resolution: {integrity: sha512-MmnduQUuHCoFckZoWnXsTg7JaiLBJrKFj9UI2MbRPGaJeVpsLcVBu6P/IGZovziM/YBsellCmsprgNA+w0CzVg==} @@ -4468,6 +4478,11 @@ snapshots: '@humanwhocodes/retry@0.4.3': {} + '@intevation/tiptap-extension-office-paste@0.1.2(@tiptap/core@2.25.0(@tiptap/pm@2.25.0))(@tiptap/pm@2.25.0)': + dependencies: + '@tiptap/core': 2.25.0(@tiptap/pm@2.25.0) + '@tiptap/pm': 2.25.0 + '@isaacs/balanced-match@4.0.1': {} '@isaacs/brace-expansion@5.0.0':