@flozy/editor 3.3.9 → 3.4.0

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.
@@ -26,7 +26,8 @@ const Form = props => {
26
26
  readOnly,
27
27
  site_id,
28
28
  page_id,
29
- onFormSubmit = () => {}
29
+ onFormSubmit = () => {},
30
+ tagName = "Pages"
30
31
  } = customProps;
31
32
  const {
32
33
  buttonProps,
@@ -78,8 +79,6 @@ const Form = props => {
78
79
  if (event) {
79
80
  event.preventDefault();
80
81
  }
81
- let headerHtml = document?.getElementsByClassName('app-logo');
82
- headerHtml = headerHtml[0]?.outerHTML;
83
82
  if ((readOnly || test) && formEle && formEle?.current) {
84
83
  const formData = new FormData(formEle?.current);
85
84
  setLoading(true);
@@ -99,7 +98,7 @@ const Form = props => {
99
98
  [isMetaKey?.element_metadatakey]: pair[1],
100
99
  type: "board",
101
100
  metadatamapping: element?.metadatamapping,
102
- headerHtml: headerHtml
101
+ tagName: tagName
103
102
  });
104
103
  }
105
104
  const fieldData = getFieldProps("name", pair[0]);
@@ -132,8 +131,7 @@ const Form = props => {
132
131
  fieldKey: pair[0],
133
132
  [pair[0]]: pair[1],
134
133
  placeholder: placeholder,
135
- form_name: formName,
136
- headerHtml: headerHtml
134
+ form_name: formName
137
135
  });
138
136
  }
139
137
  let params = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flozy/editor",
3
- "version": "3.3.9",
3
+ "version": "3.4.0",
4
4
  "description": "An Editor for flozy app brain",
5
5
  "files": [
6
6
  "dist"