@ones-editor/editor 2.5.1-beta.4 → 2.5.1-beta.6
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
|
@@ -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);
|
|
@@ -73866,6 +73878,22 @@ ${codeText}
|
|
|
73866
73878
|
}
|
|
73867
73879
|
}];
|
|
73868
73880
|
}
|
|
73881
|
+
if (token.type === "image") {
|
|
73882
|
+
const href = token.href || "";
|
|
73883
|
+
if (href) {
|
|
73884
|
+
const boxData = {
|
|
73885
|
+
id: genId(),
|
|
73886
|
+
created: Date.now(),
|
|
73887
|
+
box: true,
|
|
73888
|
+
type: "image",
|
|
73889
|
+
src: href
|
|
73890
|
+
};
|
|
73891
|
+
return [{
|
|
73892
|
+
insert: " ",
|
|
73893
|
+
attributes: boxData
|
|
73894
|
+
}];
|
|
73895
|
+
}
|
|
73896
|
+
}
|
|
73869
73897
|
logger$Q.warn(`unknown token in text: ${JSON.stringify(token)}`);
|
|
73870
73898
|
return [];
|
|
73871
73899
|
});
|
|
@@ -92123,7 +92151,7 @@ ${data2.plantumlText}
|
|
|
92123
92151
|
}
|
|
92124
92152
|
}
|
|
92125
92153
|
});
|
|
92126
|
-
editor.version = "2.5.1-beta.
|
|
92154
|
+
editor.version = "2.5.1-beta.6";
|
|
92127
92155
|
return editor;
|
|
92128
92156
|
}
|
|
92129
92157
|
function isDoc(doc2) {
|
|
@@ -92236,7 +92264,7 @@ ${data2.plantumlText}
|
|
|
92236
92264
|
}
|
|
92237
92265
|
});
|
|
92238
92266
|
OnesEditorToolbar.register(editor);
|
|
92239
|
-
editor.version = "2.5.1-beta.
|
|
92267
|
+
editor.version = "2.5.1-beta.6";
|
|
92240
92268
|
return editor;
|
|
92241
92269
|
}
|
|
92242
92270
|
async function showDocVersions(editor, options, serverUrl) {
|