@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.
@@ -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.toJSON();
122
+ const jsonData = object.data;
123
123
 
124
124
  log('[blocks:serialize] object: ', object, children);
125
125
  let key;
@@ -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(`<p>${html}</p>`);
64
+ body = this.parseHtml(`<span>${html}</span>`);
65
65
  }
66
66
 
67
67
  return this.deserializeEls(body);