@team-monolith/cds 0.29.27 → 0.29.28

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.
@@ -34,10 +34,9 @@ export declare class Quote implements BlockTool {
34
34
  icon: string;
35
35
  title: string;
36
36
  };
37
- static get sanitize(): {
38
- blockquote: {
39
- p: {};
40
- };
37
+ onPaste(event: any): void;
38
+ static get pasteConfig(): {
39
+ tags: string[];
41
40
  };
42
41
  }
43
42
  export {};
@@ -158,11 +158,13 @@ export class Quote {
158
158
  title: "Quote",
159
159
  };
160
160
  }
161
- static get sanitize() {
161
+ onPaste(event) {
162
+ const content = event.detail.data;
163
+ this._wrapper.innerHTML = content.textContent;
164
+ }
165
+ static get pasteConfig() {
162
166
  return {
163
- blockquote: {
164
- p: {},
165
- },
167
+ tags: ["BLOCKQUOTE"],
166
168
  };
167
169
  }
168
170
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-monolith/cds",
3
- "version": "0.29.27",
3
+ "version": "0.29.28",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": false,