@innovastudio/contentbox 1.6.96 → 1.6.97

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.96",
4
+ "version": "1.6.97",
5
5
  "description": "",
6
6
  "main": "public/contentbox/contentbox.esm.js",
7
7
  "types": "index.d.ts",
@@ -54,7 +54,7 @@
54
54
  "ws": "^8.13.0"
55
55
  },
56
56
  "dependencies": {
57
- "@innovastudio/contentbuilder": "^1.5.89",
57
+ "@innovastudio/contentbuilder": "^1.5.90",
58
58
  "js-beautify": "^1.14.0",
59
59
  "sortablejs": "^1.15.2"
60
60
  }
@@ -27927,7 +27927,6 @@ const renderQuickAdd = builder => {
27927
27927
  onChange: (json) => {
27928
27928
  // console.log(json);
27929
27929
  },
27930
- formHeader: true,
27931
27930
  });
27932
27931
 
27933
27932
  let json = {
@@ -27979,7 +27978,8 @@ const renderQuickAdd = builder => {
27979
27978
  "submitText": "Submit"
27980
27979
  };
27981
27980
 
27982
- viewer.view(json); // Render form
27981
+ const initialFormData = JSON.stringify(json);
27982
+ viewer.view(initialFormData);
27983
27983
 
27984
27984
  const form = document.querySelector('#form_{id}');
27985
27985
 
@@ -124333,6 +124333,7 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
124333
124333
  if ((e.ctrlKey || e.metaKey) && e.which === 65) {
124334
124334
  //CTRL-A
124335
124335
 
124336
+ if (e.target.closest('[data-html]')) return;
124336
124337
  let el;
124337
124338
  try {
124338
124339
  if (this.win.getSelection) {