@innovastudio/contentbuilder 1.0.59 → 1.0.60
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/package.json +1 -1
- package/public/contentbuilder/contentbuilder.esm.js +18 -1
- package/public/contentbuilder/contentbuilder.min.js +1 -1
- package/public/contentbuilder/themes/colored-blue.css +1 -1
- package/public/contentbuilder/themes/colored-blue2.css +1 -1
- package/public/contentbuilder/themes/colored-blue3.css +1 -1
- package/public/contentbuilder/themes/colored-blue4.css +1 -1
- package/public/contentbuilder/themes/colored-blue5.css +1 -1
- package/public/contentbuilder/themes/colored-blue6.css +1 -1
- package/public/contentbuilder/themes/colored-blue7.css +1 -1
- package/public/contentbuilder/themes/colored-blue8.css +1 -1
- package/public/contentbuilder/themes/colored-dark.css +1 -1
- package/public/contentbuilder/themes/colored-darkblue.css +1 -1
- package/public/contentbuilder/themes/colored-gray.css +1 -1
- package/public/contentbuilder/themes/colored-green.css +1 -1
- package/public/contentbuilder/themes/colored-green2.css +1 -1
- package/public/contentbuilder/themes/colored-green3.css +1 -1
- package/public/contentbuilder/themes/colored-green4.css +1 -1
- package/public/contentbuilder/themes/colored-green5.css +1 -1
- package/public/contentbuilder/themes/colored-magenta.css +1 -1
- package/public/contentbuilder/themes/colored-orange.css +1 -1
- package/public/contentbuilder/themes/colored-orange2.css +1 -1
- package/public/contentbuilder/themes/colored-orange3.css +1 -1
- package/public/contentbuilder/themes/colored-pink.css +1 -1
- package/public/contentbuilder/themes/colored-pink2.css +1 -1
- package/public/contentbuilder/themes/colored-pink3.css +1 -1
- package/public/contentbuilder/themes/colored-pink4.css +1 -1
- package/public/contentbuilder/themes/colored-purple.css +1 -1
- package/public/contentbuilder/themes/colored-purple2.css +1 -1
- package/public/contentbuilder/themes/colored-red.css +1 -1
- package/public/contentbuilder/themes/colored-red2.css +1 -1
- package/public/contentbuilder/themes/colored-red3.css +1 -1
- package/public/contentbuilder/themes/colored-red4.css +1 -1
- package/public/contentbuilder/themes/colored-red5.css +1 -1
- package/public/contentbuilder/themes/colored-yellow.css +1 -1
- package/public/contentbuilder/themes/colored-yellow2.css +1 -1
- package/public/contentbuilder/themes/dark-blue.css +1 -1
- package/public/contentbuilder/themes/dark-blue2.css +1 -1
- package/public/contentbuilder/themes/dark-blue3.css +1 -1
- package/public/contentbuilder/themes/dark-gray.css +1 -1
- package/public/contentbuilder/themes/dark-pink.css +1 -1
- package/public/contentbuilder/themes/dark-purple.css +1 -1
- package/public/contentbuilder/themes/dark-red.css +1 -1
- package/public/contentbuilder/themes/dark.css +1 -1
- package/public/contentbuilder/themes/light-blue.css +1 -1
- package/public/contentbuilder/themes/light-blue2.css +1 -1
- package/public/contentbuilder/themes/light-blue3.css +1 -1
- package/public/contentbuilder/themes/light-cyan.css +1 -1
- package/public/contentbuilder/themes/light-gray.css +1 -1
- package/public/contentbuilder/themes/light-gray2.css +1 -1
- package/public/contentbuilder/themes/light-gray3.css +1 -1
- package/public/contentbuilder/themes/light-green.css +1 -1
- package/public/contentbuilder/themes/light-pink.css +1 -1
- package/public/contentbuilder/themes/light-pink2.css +1 -1
- package/public/contentbuilder/themes/light-purple.css +1 -1
- package/public/contentbuilder/themes/light-purple2.css +1 -1
- package/public/contentbuilder/themes/light-red.css +1 -1
- package/public/contentbuilder/themes/light-yellow.css +1 -1
- package/public/contentbuilder/themes/light-yellow2.css +1 -1
package/package.json
CHANGED
|
@@ -54156,6 +54156,20 @@ class Rte {
|
|
|
54156
54156
|
|
|
54157
54157
|
if (this.builder.activeIcon) {
|
|
54158
54158
|
elm = this.builder.activeIcon;
|
|
54159
|
+
} // Find block element (line-height only works on block element)
|
|
54160
|
+
|
|
54161
|
+
|
|
54162
|
+
let element = elm;
|
|
54163
|
+
|
|
54164
|
+
while (element) {
|
|
54165
|
+
if (element.tagName === 'BODY' || element.tagName === 'HTML') return false;
|
|
54166
|
+
|
|
54167
|
+
if (window.getComputedStyle(element).getPropertyValue('display') !== 'inline') {
|
|
54168
|
+
elm = element;
|
|
54169
|
+
break;
|
|
54170
|
+
}
|
|
54171
|
+
|
|
54172
|
+
element = element.parentNode;
|
|
54159
54173
|
} // var text = dom.getSelected();
|
|
54160
54174
|
|
|
54161
54175
|
|
|
@@ -54204,7 +54218,10 @@ class Rte {
|
|
|
54204
54218
|
|
|
54205
54219
|
|
|
54206
54220
|
dom$5.doFunction(elm, function (theEl) {
|
|
54207
|
-
|
|
54221
|
+
// apply to block element only
|
|
54222
|
+
if (window.getComputedStyle(theEl).getPropertyValue('display') !== 'inline') {
|
|
54223
|
+
theEl.style.lineHeight = lineheight;
|
|
54224
|
+
}
|
|
54208
54225
|
}, true); //save selection
|
|
54209
54226
|
|
|
54210
54227
|
util.saveSelection();
|