@flozy/editor 1.3.0 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Editor/CommonEditor.js +14 -21
- package/dist/Editor/DialogWrapper.js +5 -0
- package/dist/Editor/Elements/Accordion/AccordionButton.js +10 -7
- package/dist/Editor/Elements/AppHeader/AppHeaderButton.js +7 -4
- package/dist/Editor/Elements/Button/ButtonToolIcon.js +7 -4
- package/dist/Editor/Elements/Carousel/Carousel.js +6 -2
- package/dist/Editor/Elements/Carousel/CarouselButton.js +7 -4
- package/dist/Editor/Elements/Color Picker/ColorPicker.js +3 -1
- package/dist/Editor/Elements/Embed/Embed.css +2 -2
- package/dist/Editor/Elements/Embed/Embed.js +17 -12
- package/dist/Editor/Elements/Embed/Image.js +11 -11
- package/dist/Editor/Elements/Embed/Video.js +13 -10
- package/dist/Editor/Elements/Grid/Grid.js +14 -1
- package/dist/Editor/Elements/Grid/GridButton.js +47 -7
- package/dist/Editor/Elements/Grid/GridItem.js +16 -26
- package/dist/Editor/Elements/Grid/templates/full_grid.png +0 -0
- package/dist/Editor/Elements/Grid/templates/index.js +5 -0
- package/dist/Editor/Elements/Link/LinkButton.js +12 -8
- package/dist/Editor/Elements/NewLine/NewLineButton.js +12 -9
- package/dist/Editor/Elements/PageSettings/PageSettingsButton.js +7 -4
- package/dist/Editor/Elements/Signature/SignatureButton.js +7 -4
- package/dist/Editor/Elements/Signature/SignaturePopup.js +2 -4
- package/dist/Editor/Elements/Table/Table.js +4 -1
- package/dist/Editor/Elements/Table/TableCell.js +17 -9
- package/dist/Editor/Elements/Table/TableSelector.js +12 -9
- package/dist/Editor/Toolbar/FormatTools/BlockButton.js +3 -1
- package/dist/Editor/Toolbar/FormatTools/MarkButton.js +3 -1
- package/dist/Editor/Toolbar/Toolbar.js +18 -13
- package/dist/Editor/Toolbar/toolbarGroups.js +34 -17
- package/dist/Editor/common/Button.js +10 -6
- package/dist/Editor/common/ColorPickerButton.js +6 -1
- package/dist/Editor/common/Icon.js +1 -1
- package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +20 -20
- package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +19 -19
- package/dist/Editor/common/Uploader.js +4 -3
- package/dist/Editor/plugins/withEmbeds.js +0 -1
- package/package.json +1 -1
@@ -10,7 +10,8 @@ const Uploader = props => {
|
|
10
10
|
value,
|
11
11
|
data,
|
12
12
|
onUploaded,
|
13
|
-
customProps
|
13
|
+
customProps,
|
14
|
+
disableUpload = false
|
14
15
|
} = props;
|
15
16
|
const {
|
16
17
|
key
|
@@ -52,7 +53,7 @@ const Uploader = props => {
|
|
52
53
|
children: /*#__PURE__*/_jsxs(Grid, {
|
53
54
|
container: true,
|
54
55
|
justifyContent: "space-between",
|
55
|
-
children: [/*#__PURE__*/_jsxs(Button, {
|
56
|
+
children: [!disableUpload ? /*#__PURE__*/_jsxs(Button, {
|
56
57
|
component: "label",
|
57
58
|
sx: {
|
58
59
|
display: "inline-flex",
|
@@ -68,7 +69,7 @@ const Uploader = props => {
|
|
68
69
|
},
|
69
70
|
onChange: handleChange
|
70
71
|
})]
|
71
|
-
}), base64 ? /*#__PURE__*/_jsx(Button, {
|
72
|
+
}) : null, base64 ? /*#__PURE__*/_jsx(Button, {
|
72
73
|
variant: "contained",
|
73
74
|
color: "secondary",
|
74
75
|
onClick: onRemoveBG,
|
@@ -16,7 +16,6 @@ const withEmbeds = editor => {
|
|
16
16
|
editor.insertBreak = (...args) => {
|
17
17
|
const parentPath = Path.parent(editor.selection.focus.path);
|
18
18
|
const parentNode = Node.get(editor, parentPath);
|
19
|
-
console.log(parentNode, parentPath, args);
|
20
19
|
if (editor.isVoid(parentNode)) {
|
21
20
|
const nextPath = Path.next(parentPath);
|
22
21
|
Transforms.insertNodes(editor, {
|