@livingdocs/editable.js 5.0.7 → 5.0.8
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.
- package/dist/editable.js +1 -1
- package/dist/editable.js.map +1 -1
- package/package.json +4 -4
- package/src/clipboard.js +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livingdocs/editable.js",
|
|
3
3
|
"description": "Friendly contenteditable API",
|
|
4
|
-
"version": "5.0.
|
|
4
|
+
"version": "5.0.8",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@babel/runtime": "^7.16.7",
|
|
7
7
|
"lodash-es": "^4.17.21"
|
|
@@ -80,11 +80,11 @@
|
|
|
80
80
|
"isCi": true,
|
|
81
81
|
"name": "Drone",
|
|
82
82
|
"service": "drone",
|
|
83
|
-
"commit": "
|
|
84
|
-
"build": "
|
|
83
|
+
"commit": "6f67ea1ff90ab471e60c30a7000bdcb8c802c0ac",
|
|
84
|
+
"build": "1487",
|
|
85
85
|
"branch": "master",
|
|
86
86
|
"isPr": false,
|
|
87
87
|
"slug": "livingdocsIO/editable.js",
|
|
88
|
-
"date": "2024-
|
|
88
|
+
"date": "2024-03-07T10:06:40.152Z"
|
|
89
89
|
}
|
|
90
90
|
}
|
package/src/clipboard.js
CHANGED
|
@@ -125,7 +125,7 @@ function conditionalNodeWrap (child, content, options) {
|
|
|
125
125
|
// returns string of concatenated attributes e.g. 'target="_blank" rel="nofollow" href="/test.com"'
|
|
126
126
|
function filterAttributes (nodeName, node) {
|
|
127
127
|
return Array.from(node.attributes).reduce((attributes, {name, value}) => {
|
|
128
|
-
if (allowedElements[nodeName][name] && value) {
|
|
128
|
+
if (allowedElements[nodeName]?.[name] && value) {
|
|
129
129
|
return `${attributes} ${name}="${value}"`
|
|
130
130
|
}
|
|
131
131
|
return attributes
|