@overlap/rte 1.0.5 → 1.0.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.esm.js +4 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/utils/content.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -883,6 +883,9 @@ function domToContent(element) {
|
|
|
883
883
|
if (tagName === "br") {
|
|
884
884
|
return { type: "br" };
|
|
885
885
|
}
|
|
886
|
+
if (tagName === "hr") {
|
|
887
|
+
return { type: "hr" };
|
|
888
|
+
}
|
|
886
889
|
if (tagName === "img") {
|
|
887
890
|
const attributes = {};
|
|
888
891
|
const src = el.getAttribute("src");
|
|
@@ -951,6 +954,7 @@ function domToContent(element) {
|
|
|
951
954
|
"h5",
|
|
952
955
|
"h6",
|
|
953
956
|
"blockquote",
|
|
957
|
+
"pre",
|
|
954
958
|
"ul",
|
|
955
959
|
"ol",
|
|
956
960
|
"li",
|