vue2-bbl-editor 1.3.5 → 1.3.6

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.
@@ -15530,8 +15530,8 @@ function _arrayLikeToArray(r, a) {
15530
15530
  /**
15531
15531
  * CustomParagraph Extension
15532
15532
  *
15533
- * Extends the default paragraph to add custom classes and attributes
15534
- * - Adds 'empty' class to empty paragraphs in HTML output
15533
+ * Extends the default paragraph to add custom attributes
15534
+ * - Adds 'data-empty="true"' attribute to empty paragraphs in HTML output
15535
15535
  * - Maintains all default paragraph functionality
15536
15536
  * - Provides better styling control for empty content
15537
15537
  */
@@ -15566,17 +15566,12 @@ function _arrayLikeToArray(r, a) {
15566
15566
  });
15567
15567
  }
15568
15568
 
15569
- // Add empty class if paragraph is empty or only contains whitespace
15570
- var classes = [];
15571
- if (isEmpty || isReallyEmpty) {
15572
- classes.push('empty');
15573
- }
15574
-
15575
- // Merge custom classes with existing HTMLAttributes
15569
+ // Merge custom attributes with existing HTMLAttributes
15576
15570
  var attrs = Object(core_["mergeAttributes"])(this.options.HTMLAttributes, HTMLAttributes);
15577
- if (classes.length > 0) {
15578
- var existingClass = attrs.class || '';
15579
- attrs.class = existingClass ? "".concat(existingClass, " ").concat(classes.join(' ')) : classes.join(' ');
15571
+
15572
+ // Add data-empty attribute if paragraph is empty or only contains whitespace
15573
+ if (isEmpty || isReallyEmpty) {
15574
+ attrs['data-empty'] = 'true';
15580
15575
  }
15581
15576
  return ['p', attrs, 0];
15582
15577
  },