@festo-ui/react 7.2.0-dev.442 → 7.2.0-dev.443
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.
|
@@ -2,7 +2,7 @@ import { useCallback, useEffect, useRef, useState } from 'react';
|
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import Quill from 'quill';
|
|
4
4
|
import { Delta } from 'quill/core.js';
|
|
5
|
-
import * as xss from
|
|
5
|
+
import * as xss from 'xss';
|
|
6
6
|
import useId from "../../helper/useId.js";
|
|
7
7
|
import TextEditorButton from "./TextEditorButton.js";
|
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -59,7 +59,9 @@ function TextEditor(_ref) {
|
|
|
59
59
|
const sanitizedValue = xss.filterXSS(v, {
|
|
60
60
|
whiteList
|
|
61
61
|
});
|
|
62
|
-
const content = e.clipboard.convert(
|
|
62
|
+
const content = e.clipboard.convert({
|
|
63
|
+
html: sanitizedValue
|
|
64
|
+
});
|
|
63
65
|
const selection = e.getSelection();
|
|
64
66
|
e.setContents(content, 'silent');
|
|
65
67
|
setInnerValue(sanitizedValue);
|
|
@@ -66,7 +66,9 @@ function TextEditor(_ref) {
|
|
|
66
66
|
const sanitizedValue = xss.filterXSS(v, {
|
|
67
67
|
whiteList
|
|
68
68
|
});
|
|
69
|
-
const content = e.clipboard.convert(
|
|
69
|
+
const content = e.clipboard.convert({
|
|
70
|
+
html: sanitizedValue
|
|
71
|
+
});
|
|
70
72
|
const selection = e.getSelection();
|
|
71
73
|
e.setContents(content, 'silent');
|
|
72
74
|
setInnerValue(sanitizedValue);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@festo-ui/react",
|
|
3
|
-
"version": "7.2.0-dev.
|
|
3
|
+
"version": "7.2.0-dev.443",
|
|
4
4
|
"author": "Festo UI (styleguide@festo.com)",
|
|
5
5
|
"license": "apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@popperjs/core": "^2.11.0",
|
|
28
28
|
"classnames": "^2.2.6",
|
|
29
29
|
"flatpickr": "^4.6.9",
|
|
30
|
-
"quill": "^2.0.
|
|
30
|
+
"quill": "^2.0.3",
|
|
31
31
|
"react-draggable": "^4.4.4",
|
|
32
32
|
"react-popper": "^2.3.0",
|
|
33
33
|
"react-remove-scroll": "^2.5.7",
|