tp-react-elements-dev 1.7.3 → 1.7.5

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/index.js CHANGED
@@ -52367,6 +52367,7 @@ var joditReactExports = joditReact.exports;
52367
52367
  var JoditEditor = /*@__PURE__*/getDefaultExportFromCjs(joditReactExports);
52368
52368
 
52369
52369
  const RichTextEditor = ({ props }) => {
52370
+ var _a;
52370
52371
  const editor = React$1.useRef(null);
52371
52372
  const [content, setContent] = React$1.useState("");
52372
52373
  const value = props.getValues(props.item.name);
@@ -52374,13 +52375,10 @@ const RichTextEditor = ({ props }) => {
52374
52375
  "font-family": "Arial",
52375
52376
  }, controls: {
52376
52377
  font: {
52377
- list: {
52378
- Arial: "Arial",
52379
- "Rotis Semi Sans": "Rotis Semi Sans",
52380
- },
52378
+ list: Object.assign({ Arial: "Arial" }, (_a = props.item) === null || _a === void 0 ? void 0 : _a.FontFamily),
52381
52379
  },
52382
52380
  fontsize: {
52383
- list: joditReactExports.Jodit.atom([8, 9, 10, 11]),
52381
+ list: joditReactExports.Jodit.atom(props.item.Fonts || [8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30]),
52384
52382
  },
52385
52383
  }, defaultFont: "Arial", defaultFontSize: "11px", askBeforePasteFromWord: false, askBeforePasteHTML: false, hotkeys: {
52386
52384
  redo: "ctrl+z",