@innovastudio/contentbuilder 1.5.25 → 1.5.27
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
|
@@ -87545,6 +87545,7 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
|
87545
87545
|
},
|
|
87546
87546
|
onEditStart: (event, block) => {
|
|
87547
87547
|
let activeBlock = this.doc.querySelector('.is-block.cloned');
|
|
87548
|
+
if (!activeBlock) activeBlock = this.doc.querySelector('.is-block.active');
|
|
87548
87549
|
if (!activeBlock) return;
|
|
87549
87550
|
const container = activeBlock.querySelector('.is-container');
|
|
87550
87551
|
if (!container) return;
|
|
@@ -87742,6 +87743,9 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
|
87742
87743
|
//CTRL-C
|
|
87743
87744
|
const activeBlock = docContainer.querySelector('.is-block.active'); // always get .cloned
|
|
87744
87745
|
if (activeBlock) {
|
|
87746
|
+
const focusedElement = e.target;
|
|
87747
|
+
const isEditable = focusedElement.tagName === 'INPUT' || focusedElement.tagName === 'TEXTAREA' || focusedElement.hasAttribute('contenteditable');
|
|
87748
|
+
if (isEditable) return;
|
|
87745
87749
|
this.copyBlock = activeBlock;
|
|
87746
87750
|
}
|
|
87747
87751
|
}
|
|
@@ -88185,6 +88189,9 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
|
88185
88189
|
// CMD-A or CTRL-A
|
|
88186
88190
|
if (this.canvas && this.docContainer) {
|
|
88187
88191
|
if (document.activeElement.tagName.toLowerCase() === 'body' || this.doc.activeElement.tagName.toLowerCase() === 'body' || document.activeElement.classList.contains('is-design-list')) {
|
|
88192
|
+
const focusedElement = e.target;
|
|
88193
|
+
const isEditable = focusedElement.tagName === 'INPUT' || focusedElement.tagName === 'TEXTAREA' || focusedElement.hasAttribute('contenteditable');
|
|
88194
|
+
if (isEditable) return;
|
|
88188
88195
|
const blocks = this.doc.querySelectorAll('.is-block');
|
|
88189
88196
|
blocks.forEach(block => {
|
|
88190
88197
|
block.classList.add('active');
|