@lingxiteam/lcdp-ueditor-react 1.0.0-alpha.18 → 1.0.0-alpha.19

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/es/LcdpUeditor.js CHANGED
@@ -111,6 +111,7 @@ var LcdpUeditor = /*#__PURE__*/function (_React$Component) {
111
111
  return null;
112
112
  };
113
113
  _this.editorConfig = _objectSpread(_objectSpread({}, DefaultConfig), {}, {
114
+ maximumWords: (config === null || config === void 0 ? void 0 : config.maximumWords) || 10000,
114
115
  initialFrameHeight: (config === null || config === void 0 ? void 0 : config.height) || 300,
115
116
  autoHeightEnabled: false,
116
117
  selectCallback: function selectCallback(cb, type) {
package/es/type.d.ts CHANGED
@@ -63,6 +63,7 @@ export interface ILcdpUeditorProps {
63
63
  * 上传视频格式限制
64
64
  */
65
65
  videoAllowFiles?: string[];
66
+ maximumWords?: number;
66
67
  };
67
68
  toolbars?: string[][];
68
69
  /**
@@ -107,6 +107,7 @@ var LcdpUeditor = class extends import_react.default.Component {
107
107
  };
108
108
  this.editorConfig = {
109
109
  ...import_defaultConfig.default,
110
+ maximumWords: (config == null ? void 0 : config.maximumWords) || 1e4,
110
111
  initialFrameHeight: (config == null ? void 0 : config.height) || 300,
111
112
  autoHeightEnabled: false,
112
113
  selectCallback: (cb, type) => {
package/lib/type.d.ts CHANGED
@@ -63,6 +63,7 @@ export interface ILcdpUeditorProps {
63
63
  * 上传视频格式限制
64
64
  */
65
65
  videoAllowFiles?: string[];
66
+ maximumWords?: number;
66
67
  };
67
68
  toolbars?: string[][];
68
69
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingxiteam/lcdp-ueditor-react",
3
- "version": "1.0.0-alpha.18",
3
+ "version": "1.0.0-alpha.19",
4
4
  "module": "es/index.js",
5
5
  "main": "lib/index.js",
6
6
  "license": "MIT",