@flozy/editor 1.5.2 → 1.5.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@ import React from "react";
|
|
2
2
|
import { TextField, IconButton } from "@mui/material";
|
3
3
|
import { addMarkData, activeMark } from "../../utils/SlateUtilityFunctions.js";
|
4
4
|
import { sizeMap } from "../../utils/font.js";
|
5
|
-
import { TextMinusIcon, TextPlusIcon } from "../../common/iconslist.
|
5
|
+
import { TextMinusIcon, TextPlusIcon } from "../../common/iconslist.js";
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
7
7
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
8
8
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
@@ -29,7 +29,7 @@ const TextSize = ({
|
|
29
29
|
};
|
30
30
|
const combinedOldVal = getSizeVal();
|
31
31
|
const onIncreaseSize = () => {
|
32
|
-
let inc = combinedOldVal || 0 + 1;
|
32
|
+
let inc = (combinedOldVal || 0) + 1;
|
33
33
|
inc = inc > 200 ? 200 : inc;
|
34
34
|
addMarkData(editor, {
|
35
35
|
format,
|