@flozy/editor 9.5.9 → 9.6.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.
- package/dist/Editor/ChatEditor.js +19 -26
- package/dist/Editor/CommonEditor.js +23 -139
- package/dist/Editor/DialogWrapper.js +25 -31
- package/dist/Editor/Editor.css +9 -13
- package/dist/Editor/Elements/AI/AIInput.js +3 -5
- package/dist/Editor/Elements/AI/CustomSelect.js +5 -9
- package/dist/Editor/Elements/AI/PopoverAIInput.js +2 -4
- package/dist/Editor/Elements/Accordion/Accordion.js +3 -4
- package/dist/Editor/Elements/Accordion/AccordionBtnPopup.js +1 -4
- package/dist/Editor/Elements/Accordion/AccordionButton.js +2 -6
- package/dist/Editor/Elements/Accordion/AccordionTitlePopup.js +1 -4
- package/dist/Editor/Elements/AppHeader/AppHeader.js +3 -3
- package/dist/Editor/Elements/AppHeader/AppHeaderButton.js +2 -6
- package/dist/Editor/Elements/AppHeader/AppHeaderPopup.js +1 -4
- package/dist/Editor/Elements/Attachments/AttachmentsButton.js +1 -4
- package/dist/Editor/Elements/Button/ButtonPopup.js +1 -4
- package/dist/Editor/Elements/Button/ButtonToolIcon.js +2 -6
- package/dist/Editor/Elements/Button/EditorButton.js +14 -31
- package/dist/Editor/Elements/Carousel/Carousel.js +4 -5
- package/dist/Editor/Elements/Carousel/CarouselButton.js +2 -6
- package/dist/Editor/Elements/Carousel/CarouselItem.js +2 -3
- package/dist/Editor/Elements/ChipText/ChipTextPopup.js +1 -4
- package/dist/Editor/Elements/CodeToText/CodeToText.js +4 -5
- package/dist/Editor/Elements/CodeToText/HtmlContextMenu.js +2 -6
- package/dist/Editor/Elements/Color Picker/ColorButtons.js +14 -60
- package/dist/Editor/Elements/Color Picker/ColorPicker.css +1 -25
- package/dist/Editor/Elements/Color Picker/ColorPicker.js +7 -10
- package/dist/Editor/Elements/Color Picker/Styles.js +13 -15
- package/dist/Editor/Elements/Colorbox/ColorboxButton.js +2 -6
- package/dist/Editor/Elements/DataView/DataView.js +2 -5
- package/dist/Editor/Elements/DataView/DataViewButton.js +2 -6
- package/dist/Editor/Elements/DataView/Layouts/ColumnView.js +2 -7
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/Select.js +3 -4
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/MultiSelectType.js +5 -25
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/TextType.js +2 -7
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/ChooseSort.js +12 -13
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/SortOptions/index.js +4 -7
- package/dist/Editor/Elements/DataView/Layouts/FilterSort/index.js +5 -7
- package/dist/Editor/Elements/DataView/Layouts/FilterView.js +7 -9
- package/dist/Editor/Elements/DataView/Layouts/Options/AddOptions.js +3 -8
- package/dist/Editor/Elements/DataView/Layouts/Options/AddProperty.js +3 -5
- package/dist/Editor/Elements/DataView/Layouts/Options/AllProperties.js +5 -6
- package/dist/Editor/Elements/DataView/Layouts/Options/ChangeProperty.js +3 -5
- package/dist/Editor/Elements/DataView/Layouts/Options/EditOption.js +7 -9
- package/dist/Editor/Elements/DataView/Layouts/Options/EditProperty.js +38 -64
- package/dist/Editor/Elements/DataView/Layouts/Options/FilterProperty.js +2 -3
- package/dist/Editor/Elements/DataView/Layouts/Options/PropertyList.js +2 -3
- package/dist/Editor/Elements/DataView/Layouts/Options/index.js +6 -23
- package/dist/Editor/Elements/DataView/Layouts/TableStyles.js +1 -4
- package/dist/Editor/Elements/DataView/Layouts/TableView.js +4 -6
- package/dist/Editor/Elements/DataView/Layouts/ViewData.js +4 -8
- package/dist/Editor/Elements/DataView/Layouts/index.js +1 -3
- package/dist/Editor/Elements/DataView/Providers/DataViewProvider.js +2 -5
- package/dist/Editor/Elements/DataView/styles.js +0 -13
- package/dist/Editor/Elements/Divider/Divider.js +3 -5
- package/dist/Editor/Elements/Divider/DividerButton.js +2 -6
- package/dist/Editor/Elements/Divider/DividerPopup.js +2 -3
- package/dist/Editor/Elements/Embed/Embed.js +1 -4
- package/dist/Editor/Elements/Embed/EmbedPopup.js +1 -4
- package/dist/Editor/Elements/Embed/Image.js +9 -14
- package/dist/Editor/Elements/Embed/Video.js +6 -9
- package/dist/Editor/Elements/EmbedScript/Code.js +4 -7
- package/dist/Editor/Elements/EmbedScript/EmbedScript.js +2 -6
- package/dist/Editor/Elements/EmbedScript/EmbedScriptPopup.js +5 -8
- package/dist/Editor/Elements/Emoji/EmojiButton.js +2 -6
- package/dist/Editor/Elements/Form/FieldPopup.js +1 -4
- package/dist/Editor/Elements/Form/Form.js +9 -12
- package/dist/Editor/Elements/Form/FormButton.js +2 -6
- package/dist/Editor/Elements/Form/FormPopup.js +2 -3
- package/dist/Editor/Elements/Form/Workflow/FormWorkflow.js +12 -18
- package/dist/Editor/Elements/Form/Workflow/ListWorkflow.js +8 -13
- package/dist/Editor/Elements/Form/Workflow/MoreOptions.js +2 -3
- package/dist/Editor/Elements/Form/Workflow/Styles.js +22 -24
- package/dist/Editor/Elements/Form/Workflow/UserInputs.js +2 -4
- package/dist/Editor/Elements/Form/Workflow/index.js +9 -15
- package/dist/Editor/Elements/FreeGrid/FreeGrid.js +23 -67
- package/dist/Editor/Elements/FreeGrid/FreeGridBox.js +4 -23
- package/dist/Editor/Elements/FreeGrid/FreeGridButton.js +2 -6
- package/dist/Editor/Elements/FreeGrid/FreeGridItem.js +5 -36
- package/dist/Editor/Elements/FreeGrid/Options/AddElement.js +2 -3
- package/dist/Editor/Elements/FreeGrid/Options/More.js +4 -10
- package/dist/Editor/Elements/FreeGrid/styles.js +0 -3
- package/dist/Editor/Elements/Grid/Grid.js +10 -13
- package/dist/Editor/Elements/Grid/GridButton.js +5 -9
- package/dist/Editor/Elements/Grid/GridItem.js +8 -14
- package/dist/Editor/Elements/Grid/GridItemPopup.js +1 -4
- package/dist/Editor/Elements/Grid/GridPopup.js +1 -4
- package/dist/Editor/Elements/Grid/SectionPopup.js +1 -4
- package/dist/Editor/Elements/Link/Link.js +5 -8
- package/dist/Editor/Elements/Link/LinkButton.js +1 -4
- package/dist/Editor/Elements/List/CheckList.js +9 -14
- package/dist/Editor/Elements/NewLine/NewLineButton.js +2 -6
- package/dist/Editor/Elements/PageSettings/PageSettingsButton.js +1 -4
- package/dist/Editor/Elements/PageSettings/PageSettingsPopup.js +1 -4
- package/dist/Editor/Elements/Search/SearchButton.js +3 -6
- package/dist/Editor/Elements/Search/SearchList.js +3 -7
- package/dist/Editor/Elements/Signature/SignatureButton.js +2 -6
- package/dist/Editor/Elements/Signature/SignatureOptions/TypeSignature.js +2 -6
- package/dist/Editor/Elements/Signature/SignatureOptions/UploadSignature.js +1 -4
- package/dist/Editor/Elements/Signature/SignaturePopup.js +16 -17
- package/dist/Editor/Elements/SimpleText/index.js +4 -5
- package/dist/Editor/Elements/SimpleText/style.js +2 -2
- package/dist/Editor/Elements/Table/DragButton.js +2 -4
- package/dist/Editor/Elements/Table/Table.js +11 -23
- package/dist/Editor/Elements/Table/TableCell.js +24 -2
- package/dist/Editor/Elements/Table/TablePopup.js +1 -4
- package/dist/Editor/Elements/Table/TableSelector.js +6 -10
- package/dist/Editor/Elements/Table/TableTool.js +4 -8
- package/dist/Editor/Elements/Title/title.js +0 -10
- package/dist/Editor/Elements/TopBanner/TopBannerButton.js +1 -4
- package/dist/Editor/Elements/Variables/VariableButton.js +1 -10
- package/dist/Editor/MiniEditor.js +3 -10
- package/dist/Editor/Styles/EditorStyles.js +5 -5
- package/dist/Editor/Toolbar/Basic/index.js +1 -2
- package/dist/Editor/Toolbar/FormatTools/BlockButton.js +2 -6
- package/dist/Editor/Toolbar/FormatTools/Dropdown.js +3 -27
- package/dist/Editor/Toolbar/FormatTools/FontFamilyAutocomplete.js +3 -4
- package/dist/Editor/Toolbar/FormatTools/MarkButton.js +4 -8
- package/dist/Editor/Toolbar/FormatTools/TextSize.js +13 -10
- package/dist/Editor/Toolbar/Mini/MiniToolbar.js +3 -5
- package/dist/Editor/Toolbar/PopupTool/AddTemplates.js +5 -10
- package/dist/Editor/Toolbar/PopupTool/ButtonTemplatesCard.js +4 -10
- package/dist/Editor/Toolbar/PopupTool/FullViewCard.js +4 -10
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/MiniColorPicker.js +3 -9
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectAlignment.js +35 -42
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectFontSize.js +13 -6
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectList.js +51 -58
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectSuperSubscript.js +22 -29
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/SelectTypography.js +87 -226
- package/dist/Editor/Toolbar/PopupTool/MiniTextFormat/index.js +10 -20
- package/dist/Editor/Toolbar/PopupTool/PopperHeader.js +5 -10
- package/dist/Editor/Toolbar/PopupTool/PopupToolStyle.js +11 -71
- package/dist/Editor/Toolbar/PopupTool/TemplateCard.js +5 -11
- package/dist/Editor/Toolbar/PopupTool/TextFormat.js +45 -128
- package/dist/Editor/Toolbar/PopupTool/index.js +17 -21
- package/dist/Editor/Toolbar/Toolbar.js +10 -20
- package/dist/Editor/Toolbar/toolbarGroups.js +6 -48
- package/dist/Editor/common/ColorPickerButton.js +14 -39
- package/dist/Editor/common/CustomDialog/index.js +10 -8
- package/dist/Editor/common/DnD/DragHandleButton.js +1 -1
- package/dist/Editor/common/FontLoader/FontLoader.js +0 -3
- package/dist/Editor/common/Icon.js +1 -46
- package/dist/Editor/common/ImageSelector/ImageSelector.js +8 -10
- package/dist/Editor/common/ImageSelector/Options/AddLink.js +4 -6
- package/dist/Editor/common/ImageSelector/Options/Upload.js +1 -1
- package/dist/Editor/common/ImageSelector/Styles.js +9 -3
- package/dist/Editor/common/ImageSelector/UploadStyles.js +9 -9
- package/dist/Editor/common/LinkSettings/NavComponents.js +10 -14
- package/dist/Editor/common/LinkSettings/index.js +14 -20
- package/dist/Editor/common/LinkSettings/navOptions.js +1 -1
- package/dist/Editor/common/MentionsPopup/index.js +2 -6
- package/dist/Editor/common/RnD/ContextMenu/CMenus.js +22 -22
- package/dist/Editor/common/RnD/ContextMenu/index.js +2 -3
- package/dist/Editor/common/RnD/ElementOptions/index.js +2 -7
- package/dist/Editor/common/RnD/ElementSettings/OtherSettings/SaveAsTemplate.js +3 -8
- package/dist/Editor/common/RnD/ElementSettings/OtherSettings/Settings.js +3 -7
- package/dist/Editor/common/RnD/ElementSettings/Settings/AppHeaderSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/BoxSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/ButtonSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/CodeSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/FormSettings.js +4 -7
- package/dist/Editor/common/RnD/ElementSettings/Settings/ImageSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/TableSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/Settings/TextSettings.js +2 -6
- package/dist/Editor/common/RnD/ElementSettings/Settings/VideoSettings.js +2 -3
- package/dist/Editor/common/RnD/ElementSettings/styles.js +1 -0
- package/dist/Editor/common/RnD/OptionsPopup/index.js +3 -4
- package/dist/Editor/common/RnD/SwitchViewport/SwitchViewport.js +4 -11
- package/dist/Editor/common/RnD/Theme/ViewportStimulator.js +8 -20
- package/dist/Editor/common/RnD/Utils/gridDropItem.js +7 -56
- package/dist/Editor/common/RnD/Utils/index.js +0 -3
- package/dist/Editor/common/RnD/VirtualElement/index.js +105 -188
- package/dist/Editor/common/RnD/VirtualElement/styles.js +7 -123
- package/dist/Editor/common/RnD/VirtualElement/updateAutoProps.js +3 -5
- package/dist/Editor/common/RnD/index.js +14 -59
- package/dist/Editor/common/Section/index.js +4 -7
- package/dist/Editor/common/Shorthands/elements.js +3 -74
- package/dist/Editor/common/StyleBuilder/appHeaderStyle.js +4 -4
- package/dist/Editor/common/StyleBuilder/boxStyle.js +2 -2
- package/dist/Editor/common/StyleBuilder/buttonStyle.js +4 -6
- package/dist/Editor/common/StyleBuilder/dividerStyles.js +2 -2
- package/dist/Editor/common/StyleBuilder/embedVideoStyle.js +6 -6
- package/dist/Editor/common/StyleBuilder/fieldStyle.js +2 -2
- package/dist/Editor/common/StyleBuilder/fieldTypes/alignment.js +9 -13
- package/dist/Editor/common/StyleBuilder/fieldTypes/backgroundImage.js +3 -11
- package/dist/Editor/common/StyleBuilder/fieldTypes/bannerSpacing.js +5 -19
- package/dist/Editor/common/StyleBuilder/fieldTypes/borderRadius.js +10 -22
- package/dist/Editor/common/StyleBuilder/fieldTypes/buttonLink.js +3 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/card.js +13 -27
- package/dist/Editor/common/StyleBuilder/fieldTypes/color.js +14 -43
- package/dist/Editor/common/StyleBuilder/fieldTypes/elementSize.js +6 -10
- package/dist/Editor/common/StyleBuilder/fieldTypes/fontSize.js +6 -19
- package/dist/Editor/common/StyleBuilder/fieldTypes/gridSize.js +2 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/icons.js +2 -5
- package/dist/Editor/common/StyleBuilder/fieldTypes/menusArray.js +6 -9
- package/dist/Editor/common/StyleBuilder/fieldTypes/metaDataMapping.js +2 -8
- package/dist/Editor/common/StyleBuilder/fieldTypes/saveAsTemplate.js +11 -12
- package/dist/Editor/common/StyleBuilder/fieldTypes/selectBox.js +2 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/text.js +4 -8
- package/dist/Editor/common/StyleBuilder/fieldTypes/textAlign.js +2 -6
- package/dist/Editor/common/StyleBuilder/fieldTypes/textOptions.js +12 -21
- package/dist/Editor/common/StyleBuilder/formStyle.js +7 -7
- package/dist/Editor/common/StyleBuilder/gridItemStyle.js +6 -6
- package/dist/Editor/common/StyleBuilder/gridStyle.js +5 -5
- package/dist/Editor/common/StyleBuilder/index.js +5 -8
- package/dist/Editor/common/StyleBuilder/pageSettingsStyle.js +7 -5
- package/dist/Editor/common/Uploader.js +5 -16
- package/dist/Editor/commonStyle.js +12 -23
- package/dist/Editor/helper/index.js +15 -35
- package/dist/Editor/helper/theme.js +2 -202
- package/dist/Editor/hooks/useDrag.js +11 -17
- package/dist/Editor/hooks/useEditorScroll.js +6 -10
- package/dist/Editor/hooks/useMouseMove.js +13 -25
- package/dist/Editor/hooks/useTable.js +1 -1
- package/dist/Editor/plugins/withEmbeds.js +1 -1
- package/dist/Editor/plugins/withHTML.js +9 -11
- package/dist/Editor/plugins/withLayout.js +2 -3
- package/dist/Editor/plugins/withTable.js +1 -1
- package/dist/Editor/theme/ThemeList.js +173 -50
- package/dist/Editor/utils/SlateUtilityFunctions.js +49 -168
- package/dist/Editor/utils/draftToSlate.js +2 -3
- package/dist/Editor/utils/font.js +37 -40
- package/dist/Editor/utils/freegrid.js +2 -2
- package/dist/Editor/utils/helper.js +19 -90
- package/package.json +3 -3
- package/dist/Editor/Elements/DataView/Layouts/DataTypes/Components/MultiSelect.js +0 -425
- package/dist/Editor/Toolbar/PopupTool/ThemeTextFormat.js +0 -436
- package/dist/Editor/assets/svg/ClearAllRounded.js +0 -31
- package/dist/Editor/assets/svg/ThemeIcons.js +0 -291
- package/dist/Editor/common/CustomColorPicker/index.js +0 -131
- package/dist/Editor/common/CustomColorPicker/style.js +0 -53
- package/dist/Editor/common/CustomDialog2/index.js +0 -94
- package/dist/Editor/common/CustomDialog2/style.js +0 -67
- package/dist/Editor/common/CustomSelect.js +0 -43
- package/dist/Editor/common/RnD/Theme/MainThemeProvider.js +0 -17
- package/dist/Editor/common/RnD/VirtualElement/ForceAutoAlignment.js +0 -117
- package/dist/Editor/common/RnD/VirtualElement/VirtualTextElement.js +0 -134
- package/dist/Editor/common/RnD/VirtualElement/helper.js +0 -281
- package/dist/Editor/common/SnackBar/index.js +0 -43
- package/dist/Editor/helper/textIndeces.js +0 -58
- package/dist/Editor/hooks/useAutoScroll.js +0 -38
- package/dist/Editor/hooks/useEditorTheme.js +0 -153
- package/dist/Editor/hooks/useThemeValues.js +0 -63
- package/dist/Editor/theme/index.js +0 -149
- package/dist/Editor/themeSettings/ActiveTheme.js +0 -72
- package/dist/Editor/themeSettings/buttons/index.js +0 -290
- package/dist/Editor/themeSettings/buttons/style.js +0 -23
- package/dist/Editor/themeSettings/colorTheme/index.js +0 -310
- package/dist/Editor/themeSettings/colorTheme/style.js +0 -81
- package/dist/Editor/themeSettings/fonts/PreviewElement.js +0 -121
- package/dist/Editor/themeSettings/fonts/index.js +0 -240
- package/dist/Editor/themeSettings/fonts/style.js +0 -61
- package/dist/Editor/themeSettings/icons.js +0 -60
- package/dist/Editor/themeSettings/index.js +0 -351
- package/dist/Editor/themeSettings/style.js +0 -220
- package/dist/Editor/themeSettingsAI/icons.js +0 -96
- package/dist/Editor/themeSettingsAI/index.js +0 -355
- package/dist/Editor/themeSettingsAI/saveTheme.js +0 -205
- package/dist/Editor/themeSettingsAI/style.js +0 -259
@@ -6,8 +6,7 @@ const PreviewAndSelect = props => {
|
|
6
6
|
const {
|
7
7
|
classes,
|
8
8
|
data,
|
9
|
-
onSelectTemplate
|
10
|
-
translation
|
9
|
+
onSelectTemplate
|
11
10
|
} = props;
|
12
11
|
return /*#__PURE__*/_jsxs(Box, {
|
13
12
|
className: "template-card-action",
|
@@ -16,12 +15,12 @@ const PreviewAndSelect = props => {
|
|
16
15
|
children: [/*#__PURE__*/_jsx(Button, {
|
17
16
|
className: "blueBtn",
|
18
17
|
onClick: onSelectTemplate(data),
|
19
|
-
children:
|
18
|
+
children: "Select"
|
20
19
|
}), /*#__PURE__*/_jsx(Button, {
|
21
20
|
href: data?.previewLink,
|
22
21
|
target: "_blank",
|
23
22
|
className: "outlineBtn",
|
24
|
-
children:
|
23
|
+
children: "Preview"
|
25
24
|
})]
|
26
25
|
});
|
27
26
|
};
|
@@ -30,12 +29,8 @@ const TemplateCard = props => {
|
|
30
29
|
classes,
|
31
30
|
m,
|
32
31
|
onSelectTemplate,
|
33
|
-
fullScreen
|
34
|
-
customProps
|
32
|
+
fullScreen
|
35
33
|
} = props;
|
36
|
-
const {
|
37
|
-
translation
|
38
|
-
} = customProps;
|
39
34
|
return /*#__PURE__*/_jsx(Grid, {
|
40
35
|
item: true,
|
41
36
|
xs: 4,
|
@@ -58,8 +53,7 @@ const TemplateCard = props => {
|
|
58
53
|
}), /*#__PURE__*/_jsx(PreviewAndSelect, {
|
59
54
|
classes: classes,
|
60
55
|
onSelectTemplate: onSelectTemplate,
|
61
|
-
data: m
|
62
|
-
translation: translation
|
56
|
+
data: m
|
63
57
|
})]
|
64
58
|
}), /*#__PURE__*/_jsx(CardContent, {
|
65
59
|
sx: classes.templateCardTitle,
|
@@ -10,13 +10,11 @@ import { AllColors } from "../../Elements/Color Picker/ColorButtons";
|
|
10
10
|
import { fontFamilyMap } from "../../utils/font";
|
11
11
|
import { getBorderColor } from "../../utils/helper";
|
12
12
|
import SelectTypography from "./MiniTextFormat/SelectTypography";
|
13
|
-
import { isTextCustomized, saveToTheme } from "../../helper/theme";
|
14
|
-
import { useEditorTheme } from "../../hooks/useEditorTheme";
|
15
13
|
import SelectSuperSubscript from "./MiniTextFormat/SelectSuperSubscript";
|
16
14
|
import { ColorResetIcon, TextDefaultStyleIcon } from "../../common/iconListV2";
|
17
15
|
import FontFamilyAutocomplete from "../FormatTools/FontFamilyAutocomplete";
|
18
16
|
import { useEditorContext } from "../../hooks/useMouseMove";
|
19
|
-
import LineSpacing from "../../common/StyleBuilder/fieldTypes/lineSpacing";
|
17
|
+
// import LineSpacing from "../../common/StyleBuilder/fieldTypes/lineSpacing";
|
20
18
|
import { getPageSettings } from "../../utils/pageSettings";
|
21
19
|
import { jsx as _jsx } from "react/jsx-runtime";
|
22
20
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
@@ -35,21 +33,15 @@ const TextFormat = props => {
|
|
35
33
|
const [anchorEl, setAnchorEl] = useState(null);
|
36
34
|
const [type, setType] = useState(null);
|
37
35
|
const open = Boolean(anchorEl);
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
const {
|
42
|
-
element: pageSt
|
43
|
-
} = getPageSettings(editor) || {};
|
44
|
-
const pageSettingLine = pageSt?.pageProps?.lineHeight;
|
36
|
+
|
37
|
+
// const { element: pageSt } = getPageSettings(editor) || {};
|
38
|
+
// const pageSettingLine = pageSt?.pageProps?.lineHeight;
|
45
39
|
const {
|
46
40
|
fontFamilies,
|
47
|
-
theme
|
48
|
-
} = useEditorContext();
|
49
|
-
const {
|
50
|
-
activeBreakPoint
|
41
|
+
theme
|
51
42
|
} = useEditorContext();
|
52
|
-
const
|
43
|
+
// const { activeBreakPoint } = useEditorContext();
|
44
|
+
// const breakpoint = activeBreakPoint === "" ? "lg" : activeBreakPoint;
|
53
45
|
const fontWeight = allTools.find(f => f.format === "fontWeight");
|
54
46
|
const fontStyle = allTools.filter(f => f.type === "mark" && f.format !== "strikethrough" && f.format !== "superscript" && f.format !== "subscript");
|
55
47
|
const fontAlign = allTools.filter(f => f.format?.indexOf("align") >= 0);
|
@@ -66,13 +58,12 @@ const TextFormat = props => {
|
|
66
58
|
color: "",
|
67
59
|
bgColor: ""
|
68
60
|
};
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
lineSpacingValue = lineSpacingValue?.[breakpoint] !== undefined ? lineSpacingValue : pageSettingLine;
|
61
|
+
|
62
|
+
// let lineSpacingValue = activeMark(editor, "lineHeight");
|
63
|
+
// lineSpacingValue =
|
64
|
+
// lineSpacingValue?.[breakpoint] !== undefined
|
65
|
+
// ? lineSpacingValue
|
66
|
+
// : pageSettingLine;
|
76
67
|
const handleColorPicker = type => e => {
|
77
68
|
setType(type);
|
78
69
|
setAnchorEl(e.currentTarget);
|
@@ -113,13 +104,11 @@ const TextFormat = props => {
|
|
113
104
|
value
|
114
105
|
});
|
115
106
|
};
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
});
|
122
|
-
};
|
107
|
+
|
108
|
+
// const handleLineSpacing = (data) => {
|
109
|
+
// const [[format, value]] = Object.entries(data);
|
110
|
+
// addMarkData(editor, { format, value });
|
111
|
+
// };
|
123
112
|
return /*#__PURE__*/_jsxs(Grid, {
|
124
113
|
container: true,
|
125
114
|
sx: classes.textFormatWrapper,
|
@@ -137,52 +126,7 @@ const TextFormat = props => {
|
|
137
126
|
variant: "body1",
|
138
127
|
color: "primary",
|
139
128
|
sx: classes.typoLabel,
|
140
|
-
children: "
|
141
|
-
})
|
142
|
-
}), /*#__PURE__*/_jsx(Grid, {
|
143
|
-
item: true,
|
144
|
-
children: theme?.id ? /*#__PURE__*/_jsx(Button, {
|
145
|
-
sx: classes.defaultBtn,
|
146
|
-
onClick: () => {
|
147
|
-
const {
|
148
|
-
field,
|
149
|
-
theme
|
150
|
-
} = saveToTheme(editor) || {};
|
151
|
-
updateTheme(theme, {
|
152
|
-
action: "ELEMENT_PROPS_CHANGE",
|
153
|
-
fieldName: field
|
154
|
-
});
|
155
|
-
},
|
156
|
-
disabled: !customized,
|
157
|
-
children: "Save to theme"
|
158
|
-
}) : null
|
159
|
-
})]
|
160
|
-
}), /*#__PURE__*/_jsx(Grid, {
|
161
|
-
item: true,
|
162
|
-
xs: 12,
|
163
|
-
sx: classes.textFormatField,
|
164
|
-
children: /*#__PURE__*/_jsx(SelectTypography, {
|
165
|
-
editor: editor,
|
166
|
-
classes: classes,
|
167
|
-
closeMainPopup: closeMainPopup,
|
168
|
-
type: "fullWidth",
|
169
|
-
customProps: customProps
|
170
|
-
})
|
171
|
-
})]
|
172
|
-
}), /*#__PURE__*/_jsxs(Grid, {
|
173
|
-
item: true,
|
174
|
-
xs: 12,
|
175
|
-
children: [/*#__PURE__*/_jsxs(Grid, {
|
176
|
-
container: true,
|
177
|
-
justifyContent: "space-between",
|
178
|
-
alignItems: "center",
|
179
|
-
children: [/*#__PURE__*/_jsx(Grid, {
|
180
|
-
item: true,
|
181
|
-
children: /*#__PURE__*/_jsx(Typography, {
|
182
|
-
variant: "body1",
|
183
|
-
color: "primary",
|
184
|
-
sx: classes.typoLabel,
|
185
|
-
children: translation("fontFamily")
|
129
|
+
children: "Font Family"
|
186
130
|
})
|
187
131
|
}), /*#__PURE__*/_jsx(Grid, {
|
188
132
|
item: true,
|
@@ -194,7 +138,7 @@ const TextFormat = props => {
|
|
194
138
|
val: Object.values(fontFamilyMap)[0]
|
195
139
|
}),
|
196
140
|
className: "npr-0",
|
197
|
-
children:
|
141
|
+
children: "Default Text"
|
198
142
|
})
|
199
143
|
})]
|
200
144
|
}), /*#__PURE__*/_jsx(Grid, {
|
@@ -219,7 +163,7 @@ const TextFormat = props => {
|
|
219
163
|
variant: "body1",
|
220
164
|
color: "primary",
|
221
165
|
sx: classes.typoLabel3,
|
222
|
-
children:
|
166
|
+
children: "Font Weight"
|
223
167
|
}), /*#__PURE__*/_jsx(Grid, {
|
224
168
|
item: true,
|
225
169
|
xs: 12,
|
@@ -240,7 +184,7 @@ const TextFormat = props => {
|
|
240
184
|
variant: "body1",
|
241
185
|
color: "primary",
|
242
186
|
sx: classes.typoLabel3,
|
243
|
-
children:
|
187
|
+
children: "Font Size"
|
244
188
|
}), /*#__PURE__*/_jsx(Grid, {
|
245
189
|
item: true,
|
246
190
|
xs: 12,
|
@@ -273,7 +217,7 @@ const TextFormat = props => {
|
|
273
217
|
variant: "body1",
|
274
218
|
color: "primary",
|
275
219
|
sx: classes.typoLabel,
|
276
|
-
children:
|
220
|
+
children: "Text Color"
|
277
221
|
})
|
278
222
|
}), /*#__PURE__*/_jsx(Grid, {
|
279
223
|
item: true,
|
@@ -283,7 +227,7 @@ const TextFormat = props => {
|
|
283
227
|
onClick: handleDefault({
|
284
228
|
format: "color"
|
285
229
|
}),
|
286
|
-
children:
|
230
|
+
children: "Default Color"
|
287
231
|
})
|
288
232
|
})]
|
289
233
|
}), /*#__PURE__*/_jsx(Grid, {
|
@@ -294,10 +238,9 @@ const TextFormat = props => {
|
|
294
238
|
editor: editor,
|
295
239
|
showHex: false,
|
296
240
|
rounded: true,
|
297
|
-
title:
|
241
|
+
title: "Text Color",
|
298
242
|
id: "11_cc",
|
299
|
-
classes: classes
|
300
|
-
type: "textColor"
|
243
|
+
classes: classes
|
301
244
|
}, "11_cc")
|
302
245
|
})]
|
303
246
|
}), /*#__PURE__*/_jsxs(Grid, {
|
@@ -314,7 +257,7 @@ const TextFormat = props => {
|
|
314
257
|
variant: "body1",
|
315
258
|
color: "primary",
|
316
259
|
sx: classes.typoLabel,
|
317
|
-
children:
|
260
|
+
children: "Background Color"
|
318
261
|
})
|
319
262
|
}), /*#__PURE__*/_jsx(Grid, {
|
320
263
|
item: true,
|
@@ -323,12 +266,12 @@ const TextFormat = props => {
|
|
323
266
|
children: /*#__PURE__*/_jsx(Button, {
|
324
267
|
sx: classes.defaultBtn2,
|
325
268
|
startIcon: /*#__PURE__*/_jsx(ColorResetIcon, {
|
326
|
-
stroke:
|
269
|
+
stroke: theme?.palette?.type === "dark" ? "#505359" : "#A2B0B9"
|
327
270
|
}),
|
328
271
|
onClick: handleDefault({
|
329
272
|
format: "bgColor"
|
330
273
|
}),
|
331
|
-
children:
|
274
|
+
children: "Default Color"
|
332
275
|
})
|
333
276
|
})
|
334
277
|
})]
|
@@ -342,7 +285,7 @@ const TextFormat = props => {
|
|
342
285
|
editor: editor,
|
343
286
|
showHex: false,
|
344
287
|
rounded: true,
|
345
|
-
title:
|
288
|
+
title: "Text Background Color",
|
346
289
|
classes: classes,
|
347
290
|
id: "12_cc"
|
348
291
|
}, "12_cc")
|
@@ -360,7 +303,7 @@ const TextFormat = props => {
|
|
360
303
|
variant: "body1",
|
361
304
|
color: "primary",
|
362
305
|
sx: classes.typoLabel2,
|
363
|
-
children:
|
306
|
+
children: "Alignment"
|
364
307
|
}), /*#__PURE__*/_jsx(Grid, {
|
365
308
|
item: true,
|
366
309
|
xs: 12,
|
@@ -368,8 +311,7 @@ const TextFormat = props => {
|
|
368
311
|
children: fontAlign?.map((m, i) => {
|
369
312
|
return /*#__PURE__*/_jsx(BlockButton, {
|
370
313
|
editor: editor,
|
371
|
-
...m
|
372
|
-
customProps: customProps
|
314
|
+
...m
|
373
315
|
}, `pptool_block_${i}_${m.id}`);
|
374
316
|
})
|
375
317
|
})]
|
@@ -381,7 +323,7 @@ const TextFormat = props => {
|
|
381
323
|
variant: "body1",
|
382
324
|
color: "primary",
|
383
325
|
sx: classes.typoLabel2,
|
384
|
-
children:
|
326
|
+
children: "Lists"
|
385
327
|
}), /*#__PURE__*/_jsx(Grid, {
|
386
328
|
item: true,
|
387
329
|
xs: 12,
|
@@ -390,8 +332,7 @@ const TextFormat = props => {
|
|
390
332
|
const Comp = ButtonComp[m?.component] || BlockButton;
|
391
333
|
return /*#__PURE__*/_jsx(Comp, {
|
392
334
|
editor: editor,
|
393
|
-
...m
|
394
|
-
customProps: customProps
|
335
|
+
...m
|
395
336
|
}, `pptool_block_${i}_${m.id}`);
|
396
337
|
})
|
397
338
|
})]
|
@@ -407,17 +348,20 @@ const TextFormat = props => {
|
|
407
348
|
variant: "body1",
|
408
349
|
color: "primary",
|
409
350
|
sx: classes.typoLabel,
|
410
|
-
children:
|
351
|
+
children: "Typography"
|
411
352
|
}), /*#__PURE__*/_jsxs(Grid, {
|
412
353
|
item: true,
|
413
354
|
xs: 12,
|
414
355
|
className: "typo-icons",
|
415
356
|
sx: classes.evenSpace,
|
416
|
-
children: [
|
357
|
+
children: [/*#__PURE__*/_jsx(SelectTypography, {
|
358
|
+
classes: classes,
|
359
|
+
editor: editor,
|
360
|
+
closeMainPopup: closeMainPopup || onClose
|
361
|
+
}), fontStyle?.map((m, i) => {
|
417
362
|
return /*#__PURE__*/_jsx(MarkButton, {
|
418
363
|
editor: editor,
|
419
|
-
...m
|
420
|
-
customProps: customProps
|
364
|
+
...m
|
421
365
|
}, `pptool_mark_${i}_${m.id}`);
|
422
366
|
}), /*#__PURE__*/_jsx(LinkButton, {
|
423
367
|
active: isBlockActive(editor, link.format),
|
@@ -426,8 +370,7 @@ const TextFormat = props => {
|
|
426
370
|
}, link.id), /*#__PURE__*/_jsx(SelectSuperSubscript, {
|
427
371
|
classes: classes,
|
428
372
|
editor: editor,
|
429
|
-
closeMainPopup: closeMainPopup || onClose
|
430
|
-
customProps: customProps
|
373
|
+
closeMainPopup: closeMainPopup || onClose
|
431
374
|
})]
|
432
375
|
})]
|
433
376
|
}), /*#__PURE__*/_jsx(Grid, {
|
@@ -435,32 +378,6 @@ const TextFormat = props => {
|
|
435
378
|
xs: 12,
|
436
379
|
sx: classes.dividerGrid,
|
437
380
|
children: /*#__PURE__*/_jsx(Divider, {})
|
438
|
-
}), /*#__PURE__*/_jsxs(Grid, {
|
439
|
-
item: true,
|
440
|
-
xs: 12,
|
441
|
-
children: [/*#__PURE__*/_jsx(Typography, {
|
442
|
-
variant: "body1",
|
443
|
-
color: "primary",
|
444
|
-
sx: classes.typoLabel,
|
445
|
-
children: "Line Spacing"
|
446
|
-
}), /*#__PURE__*/_jsx(Grid, {
|
447
|
-
item: true,
|
448
|
-
xs: 12,
|
449
|
-
className: "typo-icons",
|
450
|
-
sx: classes.evenSpace,
|
451
|
-
children: /*#__PURE__*/_jsx(LineSpacing, {
|
452
|
-
value: lineSpacingValue,
|
453
|
-
onChange: handleLineSpacing,
|
454
|
-
data: {
|
455
|
-
key: "lineHeight"
|
456
|
-
}
|
457
|
-
})
|
458
|
-
})]
|
459
|
-
}), /*#__PURE__*/_jsx(Grid, {
|
460
|
-
item: true,
|
461
|
-
xs: 12,
|
462
|
-
sx: classes.dividerGrid,
|
463
|
-
children: /*#__PURE__*/_jsx(Divider, {})
|
464
381
|
}), /*#__PURE__*/_jsx(Grid, {
|
465
382
|
item: true,
|
466
383
|
xs: 12,
|
@@ -472,7 +389,7 @@ const TextFormat = props => {
|
|
472
389
|
variant: "body1",
|
473
390
|
color: "primary",
|
474
391
|
sx: classes.typoLabel3,
|
475
|
-
children:
|
392
|
+
children: "Decorations"
|
476
393
|
})
|
477
394
|
}), /*#__PURE__*/_jsxs(Grid, {
|
478
395
|
item: true,
|
@@ -492,7 +409,7 @@ const TextFormat = props => {
|
|
492
409
|
style: {
|
493
410
|
background: bqBgColor
|
494
411
|
},
|
495
|
-
children:
|
412
|
+
children: "Colorbox"
|
496
413
|
}), /*#__PURE__*/_jsx("div", {
|
497
414
|
className: "vl"
|
498
415
|
}), /*#__PURE__*/_jsx(Button, {
|
@@ -513,7 +430,7 @@ const TextFormat = props => {
|
|
513
430
|
...getBorderColor(bqColor || "transparent", 3),
|
514
431
|
borderWidth: bqColor ? "0px 0px 0px 3px" : "0px"
|
515
432
|
},
|
516
|
-
children:
|
433
|
+
children: "Quote"
|
517
434
|
})
|
518
435
|
}), /*#__PURE__*/_jsx("div", {
|
519
436
|
className: "vl"
|
@@ -11,13 +11,9 @@ import useEditorScroll from "../../hooks/useEditorScroll";
|
|
11
11
|
import { isCarouselSelected } from "../../helper";
|
12
12
|
import { hideSlateSelection } from "../../utils/helper";
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
14
|
-
const isSlateDOM = event => {
|
15
|
-
return event.target.getAttribute("data-slate-string") === "true";
|
16
|
-
};
|
17
14
|
const PopupTool = props => {
|
18
15
|
const {
|
19
16
|
theme,
|
20
|
-
setIsTextSelected,
|
21
17
|
customProps,
|
22
18
|
editorWrapper
|
23
19
|
} = props;
|
@@ -36,9 +32,11 @@ const PopupTool = props => {
|
|
36
32
|
const [event] = useDrag(anchorEl);
|
37
33
|
const id = open ? "popup-edit-tool" : "";
|
38
34
|
const [size] = useWindowResize();
|
39
|
-
const isMobile = window.matchMedia("(max-width: 899px)")?.matches || false;
|
40
35
|
const updateAnchorEl = isScroll => {
|
41
36
|
try {
|
37
|
+
const {
|
38
|
+
selection
|
39
|
+
} = editor;
|
42
40
|
const isHavingSelection = selection && !Range.isCollapsed(selection);
|
43
41
|
if (isHavingSelection && event === "end") {
|
44
42
|
const domRange = ReactEditor.toDOMRange(editor, editor.selection);
|
@@ -78,44 +76,42 @@ const PopupTool = props => {
|
|
78
76
|
if (!isCarouselEdit) {
|
79
77
|
setOpen(true);
|
80
78
|
setPopupType("textFormat");
|
81
|
-
setIsTextSelected(true);
|
79
|
+
// setIsTextSelected(true);
|
82
80
|
}
|
83
81
|
} else if (!anchorEl) {
|
84
82
|
setOpen(false);
|
85
83
|
setPopupType("");
|
86
|
-
setIsTextSelected(false);
|
84
|
+
// setIsTextSelected(false);
|
87
85
|
}
|
88
86
|
}, [event, anchorEl]);
|
89
87
|
useEffect(() => {
|
90
|
-
|
88
|
+
console.log("Editor useEffect", selection);
|
89
|
+
const {
|
90
|
+
path,
|
91
|
+
enable
|
92
|
+
} = selectedElement || {};
|
93
|
+
const isFreeGridElement = path && path.split("|").length > 2;
|
94
|
+
const isFreeGridEnabled = enable === 1 && isFreeGridElement;
|
95
|
+
if (!selection || Range.isCollapsed(selection) || Editor.string(editor, selection) === "" || isFreeGridEnabled) {
|
91
96
|
setAnchorEl(null);
|
92
97
|
} else {
|
98
|
+
console.log("Editor updateAnchorEl", selection);
|
93
99
|
updateAnchorEl();
|
94
100
|
hideSlateSelection(); // removes slate selection background, when there is no selection
|
95
101
|
}
|
96
102
|
}, [selection, event, selectedElement?.enable]);
|
97
103
|
const handleClose = () => {
|
104
|
+
console.log("Editor closing");
|
98
105
|
// setAnchorEl(null);
|
99
106
|
setOpen(false);
|
100
107
|
setPopupType("");
|
101
108
|
};
|
102
109
|
return open && !openAI ? /*#__PURE__*/_jsx(ClickAwayListener, {
|
103
110
|
onClickAway: e => {
|
111
|
+
console.log("ClickAwayListener", e.target, document.body, e.target !== document.body);
|
104
112
|
// close the mini toolbar, if user clicks outside the editor (in Flozy app.)
|
105
|
-
|
106
|
-
if (isSlateDOM(e)) {
|
107
|
-
return;
|
108
|
-
}
|
109
|
-
const wrapper = document.getElementById("slate-wrapper-scroll-container");
|
110
|
-
const isInsideWrapper = wrapper && wrapper.contains(e.target);
|
111
|
-
if (isInsideWrapper) {
|
112
|
-
return;
|
113
|
-
}
|
114
|
-
if (e.target === document.body) {
|
113
|
+
if (e.target !== document.body) {
|
115
114
|
// e.target returns body, if the user clicks material ui select popup inside the tool bar, on that time, we don't need to close
|
116
|
-
return;
|
117
|
-
}
|
118
|
-
if (!isMobile) {
|
119
115
|
handleClose();
|
120
116
|
}
|
121
117
|
},
|
@@ -50,8 +50,7 @@ export const RenderToolbarIcon = props => {
|
|
50
50
|
case "block":
|
51
51
|
return /*#__PURE__*/_jsx(BlockButton, {
|
52
52
|
...element,
|
53
|
-
editor: editor
|
54
|
-
customProps: customProps
|
53
|
+
editor: editor
|
55
54
|
}, element.id);
|
56
55
|
case "mark":
|
57
56
|
return /*#__PURE__*/_jsx(MarkButton, {
|
@@ -106,8 +105,7 @@ export const RenderToolbarIcon = props => {
|
|
106
105
|
editor: editor,
|
107
106
|
customProps: customProps,
|
108
107
|
icoBtnType: icoBtnType,
|
109
|
-
lbT: element.lbT
|
110
|
-
onClose: () => {}
|
108
|
+
lbT: element.lbT
|
111
109
|
}, element.id);
|
112
110
|
case "color-picker":
|
113
111
|
return /*#__PURE__*/_jsx(ColorPicker, {
|
@@ -119,14 +117,12 @@ export const RenderToolbarIcon = props => {
|
|
119
117
|
case "table":
|
120
118
|
return /*#__PURE__*/_jsx(TableSelector, {
|
121
119
|
editor: editor,
|
122
|
-
icoBtnType: icoBtnType
|
123
|
-
customProps: customProps
|
120
|
+
icoBtnType: icoBtnType
|
124
121
|
}, element.id);
|
125
122
|
case "dataView":
|
126
123
|
return /*#__PURE__*/_jsx(DataViewButton, {
|
127
124
|
editor: editor,
|
128
|
-
icoBtnType: icoBtnType
|
129
|
-
customProps: customProps
|
125
|
+
icoBtnType: icoBtnType
|
130
126
|
}, element.id);
|
131
127
|
case "id":
|
132
128
|
return /*#__PURE__*/_jsx(Id, {
|
@@ -155,25 +151,21 @@ export const RenderToolbarIcon = props => {
|
|
155
151
|
case "newLine":
|
156
152
|
return /*#__PURE__*/_jsx(NewLineButton, {
|
157
153
|
editor: editor,
|
158
|
-
icoBtnType: icoBtnType
|
159
|
-
customProps: customProps
|
154
|
+
icoBtnType: icoBtnType
|
160
155
|
}, element.id);
|
161
156
|
case "accordion":
|
162
157
|
return /*#__PURE__*/_jsx(AccordionButton, {
|
163
|
-
editor: editor
|
164
|
-
customProps: customProps
|
158
|
+
editor: editor
|
165
159
|
}, element.id);
|
166
160
|
case "signature":
|
167
161
|
return /*#__PURE__*/_jsx(SignatureButton, {
|
168
162
|
editor: editor,
|
169
|
-
icoBtnType: icoBtnType
|
170
|
-
customProps: customProps
|
163
|
+
icoBtnType: icoBtnType
|
171
164
|
}, element.id);
|
172
165
|
case "button":
|
173
166
|
return /*#__PURE__*/_jsx(ButtonToolIcon, {
|
174
167
|
editor: editor,
|
175
|
-
icoBtnType: icoBtnType
|
176
|
-
customProps: customProps
|
168
|
+
icoBtnType: icoBtnType
|
177
169
|
}, element.id);
|
178
170
|
case "page-settings":
|
179
171
|
return /*#__PURE__*/_jsx(PageSettingsButton, {
|
@@ -184,8 +176,7 @@ export const RenderToolbarIcon = props => {
|
|
184
176
|
case "carousel":
|
185
177
|
return /*#__PURE__*/_jsx(CarouselButton, {
|
186
178
|
editor: editor,
|
187
|
-
icoBtnType: icoBtnType
|
188
|
-
customProps: customProps
|
179
|
+
icoBtnType: icoBtnType
|
189
180
|
}, element.id);
|
190
181
|
case "chip-text":
|
191
182
|
return /*#__PURE__*/_jsx(ChipTextButton, {
|
@@ -293,8 +284,7 @@ const Toolbar = props => {
|
|
293
284
|
})
|
294
285
|
}, index)), /*#__PURE__*/_jsx(HtmlContextMenu, {
|
295
286
|
editor: editor,
|
296
|
-
handleCodeToText: handleCodeToText
|
297
|
-
customProps: customProps
|
287
|
+
handleCodeToText: handleCodeToText
|
298
288
|
})]
|
299
289
|
});
|
300
290
|
};
|
@@ -28,20 +28,16 @@ export const toolbarGroups = [[{
|
|
28
28
|
type: "dropdown",
|
29
29
|
options: [{
|
30
30
|
text: "Normal",
|
31
|
-
value: "normal"
|
32
|
-
numVal: "400"
|
31
|
+
value: "normal"
|
33
32
|
}, {
|
34
33
|
text: "Bold",
|
35
|
-
value: "bold"
|
36
|
-
numVal: "700"
|
34
|
+
value: "bold"
|
37
35
|
}, {
|
38
36
|
text: "Bolder",
|
39
|
-
value: "bolder"
|
40
|
-
numVal: "700"
|
37
|
+
value: "bolder"
|
41
38
|
}, {
|
42
39
|
text: "Lighter",
|
43
|
-
value: "lighter"
|
44
|
-
numVal: "100"
|
40
|
+
value: "lighter"
|
45
41
|
}],
|
46
42
|
icon: FormatBoldIcon,
|
47
43
|
width: "100px"
|
@@ -50,8 +46,7 @@ export const toolbarGroups = [[{
|
|
50
46
|
format: "bold",
|
51
47
|
type: "mark",
|
52
48
|
title: "Bold",
|
53
|
-
basic: true
|
54
|
-
themeEnabled: true
|
49
|
+
basic: true
|
55
50
|
}, {
|
56
51
|
id: 5,
|
57
52
|
format: "underline",
|
@@ -62,8 +57,7 @@ export const toolbarGroups = [[{
|
|
62
57
|
format: "italic",
|
63
58
|
type: "mark",
|
64
59
|
title: "Italic",
|
65
|
-
basic: true
|
66
|
-
themeEnabled: true
|
60
|
+
basic: true
|
67
61
|
}, {
|
68
62
|
id: 6,
|
69
63
|
format: "strikethrough",
|
@@ -107,42 +101,6 @@ export const toolbarGroups = [[{
|
|
107
101
|
type: "block",
|
108
102
|
title: "H3",
|
109
103
|
group: "typography"
|
110
|
-
}, {
|
111
|
-
id: 39,
|
112
|
-
format: "headingFour",
|
113
|
-
type: "block",
|
114
|
-
title: "H4",
|
115
|
-
group: "typography"
|
116
|
-
}, {
|
117
|
-
id: 40,
|
118
|
-
format: "headingFive",
|
119
|
-
type: "block",
|
120
|
-
title: "H5",
|
121
|
-
group: "typography"
|
122
|
-
}, {
|
123
|
-
id: 41,
|
124
|
-
format: "headingSix",
|
125
|
-
type: "block",
|
126
|
-
title: "H6",
|
127
|
-
group: "typography"
|
128
|
-
}, {
|
129
|
-
id: 42,
|
130
|
-
format: "paragraphOne",
|
131
|
-
type: "block",
|
132
|
-
title: "Paragraph 1",
|
133
|
-
group: "typography"
|
134
|
-
}, {
|
135
|
-
id: 43,
|
136
|
-
format: "paragraphTwo",
|
137
|
-
type: "block",
|
138
|
-
title: "Paragraph 2",
|
139
|
-
group: "typography"
|
140
|
-
}, {
|
141
|
-
id: 44,
|
142
|
-
format: "paragraphThree",
|
143
|
-
type: "block",
|
144
|
-
title: "Paragraph 3",
|
145
|
-
group: "typography"
|
146
104
|
}, {
|
147
105
|
id: 14,
|
148
106
|
format: "doublequote",
|