@innovastudio/contentbox 1.6.96 → 1.6.98
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.98",
|
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.
|
57
|
+
"@innovastudio/contentbuilder": "^1.5.94",
|
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
|
-
|
27981
|
+
const initialFormData = JSON.stringify(json);
|
27982
|
+
viewer.view(initialFormData);
|
27983
27983
|
|
27984
27984
|
const form = document.querySelector('#form_{id}');
|
27985
27985
|
|
@@ -28004,11 +28004,11 @@ const renderQuickAdd = builder => {
|
|
28004
28004
|
});
|
28005
28005
|
*/
|
28006
28006
|
|
28007
|
+
var btnSend = form.querySelector('.btn-submitform');
|
28008
|
+
|
28007
28009
|
async function handleSubmit(event) {
|
28008
28010
|
event.preventDefault();
|
28009
28011
|
|
28010
|
-
const btnSend = event.target;
|
28011
|
-
|
28012
28012
|
btnSend.innerHTML = '<span class="loading-icon"><svg class="animate-spin" style="margin-right:7px;width:20px;height:20px" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg></span>Submit';
|
28013
28013
|
|
28014
28014
|
var data = new FormData(form);
|
@@ -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) {
|