@innovastudio/contentbox 1.6.40 → 1.6.42
Sign up to get free protection for your applications and to get access to all the features.
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.42",
|
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
|
}
|
@@ -23660,6 +23660,10 @@ class Element$2 {
|
|
23660
23660
|
}
|
23661
23661
|
|
23662
23662
|
open() {
|
23663
|
+
if (document.body.classList.contains('controlpanel')) ; else {
|
23664
|
+
this.builder.controlpanel.open_(); // Force open
|
23665
|
+
}
|
23666
|
+
|
23663
23667
|
this.dialog.style.display = 'flex';
|
23664
23668
|
this.getState();
|
23665
23669
|
}
|
@@ -25199,6 +25203,12 @@ class ControlPanel {
|
|
25199
25203
|
this.clearPreview();
|
25200
25204
|
this.breadcrumbRender(what);
|
25201
25205
|
|
25206
|
+
if (what === 'element' || what === 'column' || what === 'row' || what === 'box' || what === 'section') {
|
25207
|
+
if (document.body.classList.contains('controlpanel')) ; else {
|
25208
|
+
this.open_(); // Force open
|
25209
|
+
}
|
25210
|
+
}
|
25211
|
+
|
25202
25212
|
if (what === 'element') {
|
25203
25213
|
let element = this.activeElement;
|
25204
25214
|
|
@@ -113205,6 +113215,9 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
113205
113215
|
//CTRL-C
|
113206
113216
|
const activeBlock = docContainer.querySelector('.is-block.active'); // always get .cloned
|
113207
113217
|
if (activeBlock) {
|
113218
|
+
const focusedElement = e.target;
|
113219
|
+
const isEditable = focusedElement.tagName === 'INPUT' || focusedElement.tagName === 'TEXTAREA' || focusedElement.hasAttribute('contenteditable');
|
113220
|
+
if (isEditable) return;
|
113208
113221
|
this.copyBlock = activeBlock;
|
113209
113222
|
}
|
113210
113223
|
}
|
@@ -113648,6 +113661,9 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
113648
113661
|
// CMD-A or CTRL-A
|
113649
113662
|
if (this.canvas && this.docContainer) {
|
113650
113663
|
if (document.activeElement.tagName.toLowerCase() === 'body' || this.doc.activeElement.tagName.toLowerCase() === 'body' || document.activeElement.classList.contains('is-design-list')) {
|
113664
|
+
const focusedElement = e.target;
|
113665
|
+
const isEditable = focusedElement.tagName === 'INPUT' || focusedElement.tagName === 'TEXTAREA' || focusedElement.hasAttribute('contenteditable');
|
113666
|
+
if (isEditable) return;
|
113651
113667
|
const blocks = this.doc.querySelectorAll('.is-block');
|
113652
113668
|
blocks.forEach(block => {
|
113653
113669
|
block.classList.add('active');
|