@tiptap/core 2.1.14 → 2.1.15

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.umd.js CHANGED
@@ -1607,6 +1607,7 @@
1607
1607
  }
1608
1608
  }
1609
1609
  if (typeof content === 'string') {
1610
+ content = content.split('\n').map(part => part.trim()).join(''); // we need to remove new lines since the parser will add breaks
1610
1611
  const parser = model.DOMParser.fromSchema(schema);
1611
1612
  return options.slice
1612
1613
  ? parser.parseSlice(elementFromString(content), options.parseOptions).content