Skip to content

Commit

Permalink
Use office paste plugin from npm registry
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianjoel committed Dec 11, 2024
1 parent 3089ff0 commit 2525296
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 206 deletions.
10 changes: 10 additions & 0 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"@angular/platform-browser-dynamic": "^18.2.13",
"@angular/router": "^18.2.13",
"@angular/service-worker": "^18.2.13",
"@intevation/tiptap-extension-office-paste": "^0.0.3",
"@material/typography": "^14.0.0",
"@ngx-pwa/local-storage": "^18.0.0",
"@ngx-translate/core": "^16.0.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
} from '@angular/core';
import { NG_VALUE_ACCESSOR, UntypedFormControl } from '@angular/forms';
import { MatDialog } from '@angular/material/dialog';
import OfficePaste from '@intevation/tiptap-extension-office-paste';
import { TranslateService } from '@ngx-translate/core';
import { Editor, Extension } from '@tiptap/core';
import Blockquote from '@tiptap/extension-blockquote';
Expand Down Expand Up @@ -58,7 +59,6 @@ import { ClearTextcolorPaste } from './extensions/clear-textcolor';
import { Highlight } from './extensions/highlight';
import IFrame from './extensions/iframe';
import { ImageResize } from './extensions/image-resize';
import { MSOfficePaste } from './extensions/office';

const DEFAULT_COLOR_PALETE = [
`#BFEDD2`,
Expand Down Expand Up @@ -163,7 +163,7 @@ export class EditorComponent extends BaseFormControlComponent<string> implements
const editorConfig = {
element: this.editorEl.nativeElement,
extensions: [
MSOfficePaste,
OfficePaste,
ClearTextcolorPaste,
// Nodes
Document,
Expand Down

This file was deleted.

0 comments on commit 2525296

Please sign in to comment.