@innovastudio/contentbuilder 1.5.25 → 1.5.26

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/contentbuilder",
3
3
  "type": "module",
4
- "version": "1.5.25",
4
+ "version": "1.5.26",
5
5
  "description": "",
6
6
  "main": "public/contentbuilder/contentbuilder.esm.js",
7
7
  "files": [
@@ -87742,6 +87742,9 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
87742
87742
  //CTRL-C
87743
87743
  const activeBlock = docContainer.querySelector('.is-block.active'); // always get .cloned
87744
87744
  if (activeBlock) {
87745
+ const focusedElement = e.target;
87746
+ const isEditable = focusedElement.tagName === 'INPUT' || focusedElement.tagName === 'TEXTAREA' || focusedElement.hasAttribute('contenteditable');
87747
+ if (isEditable) return;
87745
87748
  this.copyBlock = activeBlock;
87746
87749
  }
87747
87750
  }
@@ -88185,6 +88188,9 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
88185
88188
  // CMD-A or CTRL-A
88186
88189
  if (this.canvas && this.docContainer) {
88187
88190
  if (document.activeElement.tagName.toLowerCase() === 'body' || this.doc.activeElement.tagName.toLowerCase() === 'body' || document.activeElement.classList.contains('is-design-list')) {
88191
+ const focusedElement = e.target;
88192
+ const isEditable = focusedElement.tagName === 'INPUT' || focusedElement.tagName === 'TEXTAREA' || focusedElement.hasAttribute('contenteditable');
88193
+ if (isEditable) return;
88188
88194
  const blocks = this.doc.querySelectorAll('.is-block');
88189
88195
  blocks.forEach(block => {
88190
88196
  block.classList.add('active');