@ones-editor/editor 2.9.4 → 2.9.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
@@ -77694,6 +77694,9 @@ ${docStr}
77694
77694
  function replaceCrLf(text2) {
77695
77695
  return text2.replace(/\r\n\s*/g, "").replace(/\n\s*/g, "").replace(/\r\s*/g, "");
77696
77696
  }
77697
+ function replaceCrLfWithSpace(text2) {
77698
+ return text2.replace(/\r\n\s*/g, " ").replace(/\n\s*/g, " ").replace(/\r\s*/g, " ");
77699
+ }
77697
77700
  function isImageElement(elem) {
77698
77701
  if (!elem.tagName) {
77699
77702
  return false;
@@ -78064,7 +78067,7 @@ ${docStr}
78064
78067
  }
78065
78068
  const currentAttributes = addNodeAttributes(node, attributes);
78066
78069
  if (node instanceof Text && node.nodeValue || node.nodeName === "BR") {
78067
- const insert = replaceCrLf((_a = node.nodeValue) != null ? _a : " ");
78070
+ const insert = replaceCrLfWithSpace((_a = node.nodeValue) != null ? _a : " ");
78068
78071
  if (insert) {
78069
78072
  ops.push(textNodeToOp(insert, currentAttributes));
78070
78073
  }
@@ -94759,7 +94762,7 @@ ${JSON.stringify(error2, null, 2)}`);
94759
94762
  }
94760
94763
  }
94761
94764
  });
94762
- editor.version = "2.9.4";
94765
+ editor.version = "2.9.5";
94763
94766
  return editor;
94764
94767
  }
94765
94768
  function isDoc(doc2) {
@@ -94873,7 +94876,7 @@ ${JSON.stringify(error2, null, 2)}`);
94873
94876
  }
94874
94877
  });
94875
94878
  OnesEditorToolbar.register(editor);
94876
- editor.version = "2.9.4";
94879
+ editor.version = "2.9.5";
94877
94880
  return editor;
94878
94881
  }
94879
94882
  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.9.4",
3
+ "version": "2.9.5",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {