@pie-lib/editable-html 10.0.0-beta.2 → 10.0.0-beta.3
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/lib/editor.js +89 -34
- package/lib/index.js +7 -9
- package/lib/new-serialization.js +2 -2
- package/lib/plugins/image/component.js +6 -5
- package/lib/plugins/image/index.js +81 -72
- package/lib/plugins/index.js +11 -1
- package/lib/plugins/math/index.js +3 -3
- package/lib/plugins/media/index.js +9 -19
- package/lib/plugins/respArea/drag-in-the-blank/index.js +4 -4
- package/lib/plugins/respArea/index.js +83 -81
- package/lib/plugins/table/index.js +84 -9
- package/lib/plugins/toolbar/toolbar.js +21 -16
- package/lib/serialization.js +2 -2
- package/lib/test-serializer.js +2 -2
- package/package.json +3 -4
- package/src/editor.jsx +67 -14
- package/src/index.jsx +6 -8
- package/src/new-serialization.jsx +1 -1
- package/src/plugins/image/component.jsx +5 -4
- package/src/plugins/image/index.jsx +72 -45
- package/src/plugins/index.jsx +6 -0
- package/src/plugins/math/index.jsx +1 -1
- package/src/plugins/media/index.jsx +6 -12
- package/src/plugins/respArea/drag-in-the-blank/index.jsx +3 -3
- package/src/plugins/respArea/index.jsx +75 -61
- package/src/plugins/table/index.jsx +68 -5
- package/src/plugins/toolbar/toolbar.jsx +21 -14
- package/src/serialization.jsx +1 -1
- package/src/test-serializer.js +1 -1
- package/yarn-error.log +18318 -0
package/src/serialization.jsx
CHANGED
|
@@ -119,7 +119,7 @@ const blocks = {
|
|
|
119
119
|
serialize: (object, children) => {
|
|
120
120
|
if (object.object !== 'block') return;
|
|
121
121
|
|
|
122
|
-
const jsonData = object.data
|
|
122
|
+
const jsonData = object.data;
|
|
123
123
|
|
|
124
124
|
log('[blocks:serialize] object: ', object, children);
|
|
125
125
|
let key;
|
package/src/test-serializer.js
CHANGED
|
@@ -61,7 +61,7 @@ class Html {
|
|
|
61
61
|
let body = this.parseHtml(html);
|
|
62
62
|
|
|
63
63
|
if (!body.firstChild || body.firstChild.nodeType === Node.TEXT_NODE) {
|
|
64
|
-
body = this.parseHtml(`<
|
|
64
|
+
body = this.parseHtml(`<span>${html}</span>`);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
return this.deserializeEls(body);
|