@tiptap/core 2.0.2 → 2.0.4

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
@@ -3270,8 +3270,8 @@ img.ProseMirror-separator {
3270
3270
  opacity: 0
3271
3271
  }`;
3272
3272
 
3273
- function createStyleTag(style, nonce) {
3274
- const tiptapStyleTag = document.querySelector('style[data-tiptap-style]');
3273
+ function createStyleTag(style, nonce, suffix) {
3274
+ const tiptapStyleTag = document.querySelector(`style[data-tiptap-style${suffix ? `-${suffix}` : ''}]`);
3275
3275
  if (tiptapStyleTag !== null) {
3276
3276
  return tiptapStyleTag;
3277
3277
  }
@@ -3279,7 +3279,7 @@ img.ProseMirror-separator {
3279
3279
  if (nonce) {
3280
3280
  styleNode.setAttribute('nonce', nonce);
3281
3281
  }
3282
- styleNode.setAttribute('data-tiptap-style', '');
3282
+ styleNode.setAttribute(`data-tiptap-style${suffix ? `-${suffix}` : ''}`, '');
3283
3283
  styleNode.innerHTML = style;
3284
3284
  document.getElementsByTagName('head')[0].appendChild(styleNode);
3285
3285
  return styleNode;