@ones-editor/editor 2.5.1-beta.4 → 2.5.1-beta.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/@ones-editor/tsconfig.tsbuildinfo +1 -1
- package/dist/index.js +14 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -73832,6 +73832,18 @@ ${codeText}
|
|
|
73832
73832
|
}
|
|
73833
73833
|
if (token.type === "html") {
|
|
73834
73834
|
const html = token.text;
|
|
73835
|
+
const testBr = html.trim().toLowerCase();
|
|
73836
|
+
if (testBr === "<br>" || testBr === "<br/>" || testBr === "<br />") {
|
|
73837
|
+
return [{
|
|
73838
|
+
insert: " ",
|
|
73839
|
+
attributes: {
|
|
73840
|
+
id: genId(),
|
|
73841
|
+
created: Date.now(),
|
|
73842
|
+
box: true,
|
|
73843
|
+
type: "br"
|
|
73844
|
+
}
|
|
73845
|
+
}];
|
|
73846
|
+
}
|
|
73835
73847
|
applyHtmlToText(html, attributes);
|
|
73836
73848
|
applyColorTagToText(html, attributes);
|
|
73837
73849
|
applyFontSizeTagToText(html, attributes);
|
|
@@ -92123,7 +92135,7 @@ ${data2.plantumlText}
|
|
|
92123
92135
|
}
|
|
92124
92136
|
}
|
|
92125
92137
|
});
|
|
92126
|
-
editor.version = "2.5.1-beta.
|
|
92138
|
+
editor.version = "2.5.1-beta.5";
|
|
92127
92139
|
return editor;
|
|
92128
92140
|
}
|
|
92129
92141
|
function isDoc(doc2) {
|
|
@@ -92236,7 +92248,7 @@ ${data2.plantumlText}
|
|
|
92236
92248
|
}
|
|
92237
92249
|
});
|
|
92238
92250
|
OnesEditorToolbar.register(editor);
|
|
92239
|
-
editor.version = "2.5.1-beta.
|
|
92251
|
+
editor.version = "2.5.1-beta.5";
|
|
92240
92252
|
return editor;
|
|
92241
92253
|
}
|
|
92242
92254
|
async function showDocVersions(editor, options, serverUrl) {
|