Improve paste handling of formatted data

This commit is contained in:
Scott Nonnenberg
2023-05-17 09:58:32 -07:00
committed by GitHub
parent 73f4374e1e
commit f42192fb5a
4 changed files with 127 additions and 39 deletions

View File

@@ -1078,6 +1078,20 @@
"updated": "2020-10-13T18:36:57.012Z",
"reasonDetail": "necessary for quill"
},
{
"rule": "DOM-innerHTML",
"path": "node_modules/quill/dist/quill.core.js",
"line": " this.container.innerHTML = html.replace(/\\>\\r?\\n +\\</g, '><'); // Remove spaces between tags",
"reasonCategory": "notExercisedByOurApp",
"updated": "2023-05-17T16:29:59.196Z"
},
{
"rule": "DOM-innerHTML",
"path": "node_modules/quill/dist/quill.core.js",
"line": " this.container.innerHTML = '';",
"reasonCategory": "notExercisedByOurApp",
"updated": "2023-05-17T16:29:59.196Z"
},
{
"rule": "DOM-innerHTML",
"path": "node_modules/quill/dist/quill.core.js",
@@ -1094,22 +1108,6 @@
"updated": "2020-10-13T18:36:57.012Z",
"reasonDetail": "necessary for quill"
},
{
"rule": "DOM-innerHTML",
"path": "node_modules/quill/dist/quill.core.js",
"line": " this.container.innerHTML = html.replace(/\\>\\r?\\n +\\</g, '><'); // Remove spaces between tags",
"reasonCategory": "usageTrusted",
"updated": "2020-10-13T18:36:57.012Z",
"reasonDetail": "necessary for quill"
},
{
"rule": "DOM-innerHTML",
"path": "node_modules/quill/dist/quill.core.js",
"line": " this.container.innerHTML = '';",
"reasonCategory": "usageTrusted",
"updated": "2020-10-13T18:36:57.012Z",
"reasonDetail": "necessary for quill"
},
{
"rule": "DOM-innerHTML",
"path": "node_modules/quill/dist/quill.core.js",
@@ -1129,15 +1127,28 @@
{
"rule": "DOM-innerHTML",
"path": "node_modules/quill/dist/quill.js",
"line": " var html = this.container.innerHTML.trim();",
"reasonCategory": "usageTrusted",
"updated": "2020-10-13T18:36:57.012Z",
"reasonDetail": "necessary for quill"
"line": " // this.container.innerHTML = html.replace(/\\>\\r?\\n +\\</g, '><'); // Remove spaces between tags",
"reasonCategory": "falseMatch",
"updated": "2023-05-17T01:41:49.734Z"
},
{
"rule": "DOM-innerHTML",
"path": "node_modules/quill/dist/quill.js",
"line": " this.container.innerHTML = '';",
"line": " // this.container.innerHTML = '';",
"reasonCategory": "falseMatch",
"updated": "2023-05-17T01:41:49.734Z"
},
{
"rule": "DOM-innerHTML",
"path": "node_modules/quill/dist/quill.js",
"line": " // this.container.innerHTML = '';",
"reasonCategory": "falseMatch",
"updated": "2023-05-17T01:41:49.734Z"
},
{
"rule": "DOM-innerHTML",
"path": "node_modules/quill/dist/quill.js",
"line": " var html = this.container.innerHTML.trim();",
"reasonCategory": "usageTrusted",
"updated": "2020-10-13T18:36:57.012Z",
"reasonDetail": "necessary for quill"
@@ -1174,14 +1185,6 @@
"updated": "2020-10-13T18:36:57.012Z",
"reasonDetail": "necessary for quill"
},
{
"rule": "DOM-innerHTML",
"path": "node_modules/quill/dist/quill.js",
"line": " this.container.innerHTML = html.replace(/\\>\\r?\\n +\\</g, '><'); // Remove spaces between tags",
"reasonCategory": "usageTrusted",
"updated": "2020-10-13T18:36:57.012Z",
"reasonDetail": "necessary for quill"
},
{
"rule": "DOM-innerHTML",
"path": "node_modules/quill/dist/quill.js",
@@ -1198,14 +1201,6 @@
"updated": "2020-10-13T18:36:57.012Z",
"reasonDetail": "necessary for quill"
},
{
"rule": "DOM-innerHTML",
"path": "node_modules/quill/dist/quill.js",
"line": " this.container.innerHTML = '';",
"reasonCategory": "usageTrusted",
"updated": "2020-10-13T18:36:57.012Z",
"reasonDetail": "necessary for quill"
},
{
"rule": "DOM-innerHTML",
"path": "node_modules/quill/dist/quill.js",