@team-monolith/cds 0.29.21 → 0.29.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,10 +22,6 @@ export declare class Raw extends EditorJSRaw {
22
22
  icon: string;
23
23
  title: string;
24
24
  };
25
- static get sanitize(): {
26
- html: boolean;
27
- code: boolean;
28
- };
29
25
  onPaste(event: any): void;
30
26
  static get pasteConfig(): {
31
27
  tags: string[];
@@ -92,22 +92,15 @@ export class Raw extends EditorJSRaw {
92
92
  title: "Code",
93
93
  };
94
94
  }
95
- static get sanitize() {
96
- return {
97
- html: true,
98
- code: false,
99
- };
100
- }
101
95
  onPaste(event) {
102
96
  const content = event.detail.data;
103
- console.log(content);
104
- this.data = {
105
- html: content.textContent,
106
- };
97
+ if (this.textarea) {
98
+ this.textarea.textContent = content.textContent;
99
+ }
107
100
  }
108
101
  static get pasteConfig() {
109
102
  return {
110
- tags: ["pre", "CODE", "TEXTAREA"],
103
+ tags: ["PRE", "CODE", "TEXTAREA"],
111
104
  };
112
105
  }
113
106
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-monolith/cds",
3
- "version": "0.29.21",
3
+ "version": "0.29.23",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": false,