suneditor 2.44.1 → 2.44.2
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/suneditor.min.js +2 -2
- package/package.json +1 -1
- package/src/lib/core.js +2 -2
package/package.json
CHANGED
package/src/lib/core.js
CHANGED
|
@@ -5196,7 +5196,7 @@ export default function (context, pluginCallButtons, plugins, lang, options, _re
|
|
|
5196
5196
|
case '%':
|
|
5197
5197
|
return (pxSize * 0.0625).toFixed(2) + to;
|
|
5198
5198
|
case 'pt':
|
|
5199
|
-
return this.
|
|
5199
|
+
return this.floor(pxSize / 1.333) + to;
|
|
5200
5200
|
default: // px
|
|
5201
5201
|
return pxSize + to;
|
|
5202
5202
|
}
|
|
@@ -5210,7 +5210,7 @@ export default function (context, pluginCallButtons, plugins, lang, options, _re
|
|
|
5210
5210
|
if (style) {
|
|
5211
5211
|
const allowedStyle = [];
|
|
5212
5212
|
for (let i = 0, len = style.length, r; i < len; i++) {
|
|
5213
|
-
r = style[i].match(/(
|
|
5213
|
+
r = style[i].match(/([a-zA-Z0-9-]+)(:)([^:]+$)/);
|
|
5214
5214
|
if (r && !/inherit|initial/i.test(r[3])) {
|
|
5215
5215
|
const k = util.kebabToCamelCase(r[1].trim());
|
|
5216
5216
|
const v = this.wwComputedStyle[k].replace(/"/g, '');
|