@ones-editor/editor 2.8.39 → 2.8.40

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
@@ -76875,6 +76875,9 @@ ${docStr}
76875
76875
  function replaceCrLf(text2) {
76876
76876
  return text2.replace(/\r\n\s*/g, "").replace(/\n\s*/g, "").replace(/\r\s*/g, "");
76877
76877
  }
76878
+ function replaceCrLfWithSpace(text2) {
76879
+ return text2.replace(/\r\n\s*/g, " ").replace(/\n\s*/g, " ").replace(/\r\s*/g, " ");
76880
+ }
76878
76881
  function isImageElement(elem) {
76879
76882
  if (!elem.tagName) {
76880
76883
  return false;
@@ -77245,7 +77248,7 @@ ${docStr}
77245
77248
  }
77246
77249
  const currentAttributes = addNodeAttributes(node, attributes);
77247
77250
  if (node instanceof Text && node.nodeValue || node.nodeName === "BR") {
77248
- const insert = replaceCrLf((_a = node.nodeValue) != null ? _a : " ");
77251
+ const insert = replaceCrLfWithSpace((_a = node.nodeValue) != null ? _a : " ");
77249
77252
  if (insert) {
77250
77253
  ops.push(textNodeToOp(insert, currentAttributes));
77251
77254
  }
@@ -93919,7 +93922,7 @@ ${JSON.stringify(error2, null, 2)}`);
93919
93922
  }
93920
93923
  }
93921
93924
  });
93922
- editor.version = "2.8.39";
93925
+ editor.version = "2.8.40";
93923
93926
  return editor;
93924
93927
  }
93925
93928
  function isDoc(doc2) {
@@ -94032,7 +94035,7 @@ ${JSON.stringify(error2, null, 2)}`);
94032
94035
  }
94033
94036
  });
94034
94037
  OnesEditorToolbar.register(editor);
94035
- editor.version = "2.8.39";
94038
+ editor.version = "2.8.40";
94036
94039
  return editor;
94037
94040
  }
94038
94041
  async function showDocVersions(editor, options, serverUrl) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "2.8.39",
3
+ "version": "2.8.40",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {