@innovastudio/contentbuilder 1.5.88 → 1.5.90
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
@@ -1506,7 +1506,6 @@ const renderQuickAdd = builder => {
|
|
1506
1506
|
onChange: (json) => {
|
1507
1507
|
// console.log(json);
|
1508
1508
|
},
|
1509
|
-
formHeader: true,
|
1510
1509
|
});
|
1511
1510
|
|
1512
1511
|
let json = {
|
@@ -1558,7 +1557,8 @@ const renderQuickAdd = builder => {
|
|
1558
1557
|
"submitText": "Submit"
|
1559
1558
|
};
|
1560
1559
|
|
1561
|
-
|
1560
|
+
const initialFormData = JSON.stringify(json);
|
1561
|
+
viewer.view(initialFormData);
|
1562
1562
|
|
1563
1563
|
const form = document.querySelector('#form_{id}');
|
1564
1564
|
|
@@ -1590,8 +1590,8 @@ const renderQuickAdd = builder => {
|
|
1590
1590
|
|
1591
1591
|
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';
|
1592
1592
|
|
1593
|
-
var data = new FormData(
|
1594
|
-
fetch(
|
1593
|
+
var data = new FormData(form);
|
1594
|
+
fetch(form.action, {
|
1595
1595
|
method: form.method,
|
1596
1596
|
body: data,
|
1597
1597
|
headers: {
|
@@ -97912,6 +97912,7 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
97912
97912
|
if ((e.ctrlKey || e.metaKey) && e.which === 65) {
|
97913
97913
|
//CTRL-A
|
97914
97914
|
|
97915
|
+
if (e.target.closest('[data-html]')) return;
|
97915
97916
|
let el;
|
97916
97917
|
try {
|
97917
97918
|
if (this.win.getSelection) {
|