@lingxiteam/lcdp-ueditor-react 1.0.0-alpha.20 → 1.0.0-alpha.21
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 +3 -2
- package/es/type.d.ts +4 -0
- package/lib/LcdpUeditor.js +4 -3
- package/lib/type.d.ts +4 -0
- package/package.json +3 -5
package/es/LcdpUeditor.js
CHANGED
|
@@ -21,7 +21,7 @@ import React from 'react';
|
|
|
21
21
|
import { DEFAULT_UEDITOR_CONFIG, DEFAULT_UEDITOR_PATH } from "./const";
|
|
22
22
|
import DefaultConfig from "./defaultConfig.json";
|
|
23
23
|
import UeditorResourceLoader from "./tools/UeditorResourceLoader";
|
|
24
|
-
import
|
|
24
|
+
import debounce from 'lodash/debounce';
|
|
25
25
|
import { filterHtmlNode } from "./tools/filterHtmlNode";
|
|
26
26
|
var LcdpUeditor = /*#__PURE__*/function (_React$Component) {
|
|
27
27
|
_inherits(LcdpUeditor, _React$Component);
|
|
@@ -118,7 +118,8 @@ var LcdpUeditor = /*#__PURE__*/function (_React$Component) {
|
|
|
118
118
|
_this.fileSelect(cb, type);
|
|
119
119
|
},
|
|
120
120
|
uploadFunction: _this.uploadFunction,
|
|
121
|
-
initialContent: nextValue || ''
|
|
121
|
+
initialContent: nextValue || '',
|
|
122
|
+
pasteplain: (config === null || config === void 0 ? void 0 : config.pasteplain) === true
|
|
122
123
|
});
|
|
123
124
|
_this.debounceContentChange = debounce(_this.onContentChange.bind(_assertThisInitialized(_this)), 300);
|
|
124
125
|
return _this;
|
package/es/type.d.ts
CHANGED
package/lib/LcdpUeditor.js
CHANGED
|
@@ -36,7 +36,7 @@ var import_react = __toESM(require("react"));
|
|
|
36
36
|
var import_const = require("./const");
|
|
37
37
|
var import_defaultConfig = __toESM(require("./defaultConfig.json"));
|
|
38
38
|
var import_UeditorResourceLoader = __toESM(require("./tools/UeditorResourceLoader"));
|
|
39
|
-
var
|
|
39
|
+
var import_debounce = __toESM(require("lodash/debounce"));
|
|
40
40
|
var import_filterHtmlNode = require("./tools/filterHtmlNode");
|
|
41
41
|
var LcdpUeditor = class extends import_react.default.Component {
|
|
42
42
|
constructor(props) {
|
|
@@ -114,9 +114,10 @@ var LcdpUeditor = class extends import_react.default.Component {
|
|
|
114
114
|
this.fileSelect(cb, type);
|
|
115
115
|
},
|
|
116
116
|
uploadFunction: this.uploadFunction,
|
|
117
|
-
initialContent: nextValue || ""
|
|
117
|
+
initialContent: nextValue || "",
|
|
118
|
+
pasteplain: (config == null ? void 0 : config.pasteplain) === true
|
|
118
119
|
};
|
|
119
|
-
this.debounceContentChange = (0,
|
|
120
|
+
this.debounceContentChange = (0, import_debounce.default)(this.onContentChange.bind(this), 300);
|
|
120
121
|
}
|
|
121
122
|
componentDidMount() {
|
|
122
123
|
this.initUeditor();
|
package/lib/type.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lingxiteam/lcdp-ueditor-react",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.21",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -16,15 +16,13 @@
|
|
|
16
16
|
"dev": "father dev",
|
|
17
17
|
"prepublishOnly": "npm run build && cd ../../ueditor-plus && npm run prepublish"
|
|
18
18
|
},
|
|
19
|
-
"dependencies": {
|
|
20
|
-
"lodash": "^4.0.0"
|
|
21
|
-
},
|
|
22
19
|
"devDependencies": {
|
|
23
20
|
"@types/lodash": "^4.14.180",
|
|
24
21
|
"father": "^4.1.9"
|
|
25
22
|
},
|
|
26
23
|
"peerDependencies": {
|
|
27
|
-
"react": "^16.12.0 || ^17.0.0"
|
|
24
|
+
"react": "^16.12.0 || ^17.0.0",
|
|
25
|
+
"lodash": "^4.0.0"
|
|
28
26
|
},
|
|
29
27
|
"publishConfig": {
|
|
30
28
|
"access": "public",
|