@innovastudio/contentbox 1.6.40 → 1.6.41
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/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@innovastudio/contentbox",
|
3
3
|
"type": "module",
|
4
|
-
"version": "1.6.
|
4
|
+
"version": "1.6.41",
|
5
5
|
"description": "",
|
6
6
|
"main": "public/contentbox/contentbox.esm.js",
|
7
7
|
"files": [
|
@@ -52,7 +52,7 @@
|
|
52
52
|
"ws": "^8.13.0"
|
53
53
|
},
|
54
54
|
"dependencies": {
|
55
|
-
"@innovastudio/contentbuilder": "^1.5.
|
55
|
+
"@innovastudio/contentbuilder": "^1.5.26",
|
56
56
|
"js-beautify": "^1.14.0"
|
57
57
|
}
|
58
58
|
}
|
@@ -113205,6 +113205,9 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
113205
113205
|
//CTRL-C
|
113206
113206
|
const activeBlock = docContainer.querySelector('.is-block.active'); // always get .cloned
|
113207
113207
|
if (activeBlock) {
|
113208
|
+
const focusedElement = e.target;
|
113209
|
+
const isEditable = focusedElement.tagName === 'INPUT' || focusedElement.tagName === 'TEXTAREA' || focusedElement.hasAttribute('contenteditable');
|
113210
|
+
if (isEditable) return;
|
113208
113211
|
this.copyBlock = activeBlock;
|
113209
113212
|
}
|
113210
113213
|
}
|
@@ -113648,6 +113651,9 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
113648
113651
|
// CMD-A or CTRL-A
|
113649
113652
|
if (this.canvas && this.docContainer) {
|
113650
113653
|
if (document.activeElement.tagName.toLowerCase() === 'body' || this.doc.activeElement.tagName.toLowerCase() === 'body' || document.activeElement.classList.contains('is-design-list')) {
|
113654
|
+
const focusedElement = e.target;
|
113655
|
+
const isEditable = focusedElement.tagName === 'INPUT' || focusedElement.tagName === 'TEXTAREA' || focusedElement.hasAttribute('contenteditable');
|
113656
|
+
if (isEditable) return;
|
113651
113657
|
const blocks = this.doc.querySelectorAll('.is-block');
|
113652
113658
|
blocks.forEach(block => {
|
113653
113659
|
block.classList.add('active');
|