@lingxiteam/lcdp-ueditor-react 1.0.0-alpha.10 → 1.0.0-alpha.12

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
@@ -131,7 +131,7 @@ var LcdpUeditor = /*#__PURE__*/function (_React$Component) {
131
131
  if (this.isReady) {
132
132
  if ('value' in nextProps && this.currentContent !== nextProps.value) {
133
133
  this.isReportFlag = false;
134
- this.ueditorInst.setContent(nextProps.value);
134
+ this.ueditorInst.setContent(nextProps.value || '');
135
135
  }
136
136
  // 禁用操作需要调用指定的api进行操作
137
137
  if (nextProps.disabled !== this.props.disabled) {
@@ -122,7 +122,7 @@ var LcdpUeditor = class extends import_react.default.Component {
122
122
  if (this.isReady) {
123
123
  if ("value" in nextProps && this.currentContent !== nextProps.value) {
124
124
  this.isReportFlag = false;
125
- this.ueditorInst.setContent(nextProps.value);
125
+ this.ueditorInst.setContent(nextProps.value || "");
126
126
  }
127
127
  if (nextProps.disabled !== this.props.disabled) {
128
128
  if (nextProps.disabled) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingxiteam/lcdp-ueditor-react",
3
- "version": "1.0.0-alpha.10",
3
+ "version": "1.0.0-alpha.12",
4
4
  "module": "es/index.js",
5
5
  "main": "lib/index.js",
6
6
  "license": "MIT",
@@ -24,7 +24,7 @@
24
24
  }
25
25
  </style>
26
26
  <script type="text/javascript" src="../internal.js?32939b8e"></script>
27
- <script src="../../ueditor.parse.js?{timestamp}"></script>
27
+ <script src="../../ueditor.parse.js?8ec8e2ae"></script>
28
28
  <title></title>
29
29
  </head>
30
30
  <body class="view">
@@ -6,7 +6,7 @@
6
6
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
7
  <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
8
8
  <script type="text/javascript" charset="utf-8" src="ueditor.config.js"></script>
9
- <script type="text/javascript" charset="utf-8" src="lcdp-ueditor.all.js"></script>
9
+ <script type="text/javascript" charset="utf-8" src="ueditor.all.js"></script>
10
10
  <script type="text/javascript" charset="utf-8" src="lang/zh-cn/zh-cn.js?8c5d8442"></script>
11
11
  <script src="./plugins/demo/demo.js"></script>
12
12
  <script>