@blocknote/core 0.1.1 → 0.1.2
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/blocknote.js
CHANGED
|
@@ -967,7 +967,7 @@ const Hi = "_blockOuter_1houv_5", _i = "_block_1houv_5", zi = "_blockContent_1ho
|
|
|
967
967
|
renderHTML({ HTMLAttributes: e }) {
|
|
968
968
|
const t = {};
|
|
969
969
|
for (let [r, n] of Object.entries(Wr))
|
|
970
|
-
t[n] = e[r];
|
|
970
|
+
e[r] && (t[n] = e[r]);
|
|
971
971
|
return [
|
|
972
972
|
"div",
|
|
973
973
|
pr(t, {
|
|
@@ -5327,11 +5327,7 @@ const _l = jt.create({
|
|
|
5327
5327
|
types: this.options.types,
|
|
5328
5328
|
attributes: {
|
|
5329
5329
|
[this.options.attributeName]: {
|
|
5330
|
-
default: null
|
|
5331
|
-
parseHTML: (e) => e.getAttribute(`data-${this.options.attributeName}`),
|
|
5332
|
-
renderHTML: (e) => e[this.options.attributeName] ? {
|
|
5333
|
-
[`data-${this.options.attributeName}`]: e[this.options.attributeName]
|
|
5334
|
-
} : {}
|
|
5330
|
+
default: null
|
|
5335
5331
|
}
|
|
5336
5332
|
}
|
|
5337
5333
|
}
|