@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.esm.js
CHANGED
|
@@ -879,6 +879,9 @@ function domToContent(element) {
|
|
|
879
879
|
if (tagName === "br") {
|
|
880
880
|
return { type: "br" };
|
|
881
881
|
}
|
|
882
|
+
if (tagName === "hr") {
|
|
883
|
+
return { type: "hr" };
|
|
884
|
+
}
|
|
882
885
|
if (tagName === "img") {
|
|
883
886
|
const attributes = {};
|
|
884
887
|
const src = el.getAttribute("src");
|
|
@@ -947,6 +950,7 @@ function domToContent(element) {
|
|
|
947
950
|
"h5",
|
|
948
951
|
"h6",
|
|
949
952
|
"blockquote",
|
|
953
|
+
"pre",
|
|
950
954
|
"ul",
|
|
951
955
|
"ol",
|
|
952
956
|
"li",
|