@flozy/editor 1.3.4 → 1.3.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Editor/CommonEditor.js +5 -3
- package/dist/Editor/Editor.css +388 -314
- package/dist/Editor/Elements/Accordion/Accordion.js +31 -9
- package/dist/Editor/Elements/Accordion/AccordionSummary.js +17 -5
- package/dist/Editor/Elements/AppHeader/AppHeader.js +3 -1
- package/dist/Editor/Elements/Button/EditorButton.js +8 -2
- package/dist/Editor/Elements/Carousel/Carousel.js +38 -18
- package/dist/Editor/Elements/Embed/Video.js +3 -4
- package/dist/Editor/Elements/Form/FieldPopup.js +20 -0
- package/dist/Editor/Elements/Form/Form.js +268 -0
- package/dist/Editor/Elements/Form/FormButton.js +21 -0
- package/dist/Editor/Elements/Form/FormElements/FormText.js +48 -0
- package/dist/Editor/Elements/Form/FormElements/index.js +5 -0
- package/dist/Editor/Elements/Form/FormField.js +101 -0
- package/dist/Editor/Elements/Form/FormPopup.js +20 -0
- package/dist/Editor/Elements/Grid/Grid.js +10 -3
- package/dist/Editor/Elements/Grid/GridButton.js +24 -5
- package/dist/Editor/Elements/Grid/GridItem.js +11 -4
- package/dist/Editor/Toolbar/Toolbar.js +6 -0
- package/dist/Editor/Toolbar/toolbarGroups.js +3 -0
- package/dist/Editor/common/StyleBuilder/buttonStyle.js +28 -2
- package/dist/Editor/common/StyleBuilder/fieldStyle.js +71 -0
- package/dist/Editor/common/StyleBuilder/fieldTypes/alignment.js +28 -0
- package/dist/Editor/common/StyleBuilder/fieldTypes/index.js +7 -1
- package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +3 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +35 -0
- package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +4 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/textAlign.js +60 -0
- package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +46 -0
- package/dist/Editor/common/StyleBuilder/formStyle.js +82 -0
- package/dist/Editor/service/formSubmit.js +16 -0
- package/dist/Editor/utils/SlateUtilityFunctions.js +12 -1
- package/dist/Editor/utils/form.js +24 -0
- package/dist/Editor/utils/formfield.js +20 -0
- package/dist/Editor/utils/grid.js +0 -1
- package/package.json +1 -1
@@ -60,7 +60,8 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
|
|
60
60
|
needDotsBG,
|
61
61
|
footer,
|
62
62
|
needLayout = true,
|
63
|
-
CHARACTERS = []
|
63
|
+
CHARACTERS = [],
|
64
|
+
editorClass
|
64
65
|
} = otherProps || {};
|
65
66
|
const editor = useMemo(() => {
|
66
67
|
if (collaborativeEditor) return collaborativeEditor;
|
@@ -183,7 +184,8 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
|
|
183
184
|
const isReadOnly = readOnly === "readonly";
|
184
185
|
const customProps = {
|
185
186
|
...(otherProps || {}),
|
186
|
-
readOnly: isReadOnly
|
187
|
+
readOnly: isReadOnly,
|
188
|
+
page_id: id
|
187
189
|
};
|
188
190
|
const renderElement = useCallback(props => {
|
189
191
|
return /*#__PURE__*/_jsx(Element, {
|
@@ -234,7 +236,7 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
|
|
234
236
|
fullScreen: fullScreen,
|
235
237
|
footer: footer || "",
|
236
238
|
children: /*#__PURE__*/_jsx("div", {
|
237
|
-
className:
|
239
|
+
className: `editor-t-wrapper ${editorClass || ""}`,
|
238
240
|
style: {
|
239
241
|
display: "flex",
|
240
242
|
flexDirection: "column",
|