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.
- package/dist/vue2-bbl-editor.common.js +7 -12
- package/dist/vue2-bbl-editor.common.js.map +1 -1
- package/dist/vue2-bbl-editor.umd.js +7 -12
- package/dist/vue2-bbl-editor.umd.js.map +1 -1
- package/dist/vue2-bbl-editor.umd.min.js +7 -12
- package/dist/vue2-bbl-editor.umd.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -15530,8 +15530,8 @@ function _arrayLikeToArray(r, a) {
|
|
|
15530
15530
|
/**
|
|
15531
15531
|
* CustomParagraph Extension
|
|
15532
15532
|
*
|
|
15533
|
-
* Extends the default paragraph to add custom
|
|
15534
|
-
* - Adds 'empty'
|
|
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
|
-
//
|
|
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
|
-
|
|
15578
|
-
|
|
15579
|
-
|
|
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
|
},
|