@flozy/editor 9.9.1 → 9.9.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.
@@ -147,7 +147,8 @@ export function getTextSizeVal(editor) {
|
|
147
147
|
const currentElement = ReactEditor.toDOMNode(editor, currentNode);
|
148
148
|
if (currentElement) {
|
149
149
|
const element = currentElement.querySelector('span[data-slate-string="true"]');
|
150
|
-
|
150
|
+
const fontSize = getElementProperty(element, "font-size");
|
151
|
+
return fontSize || 16;
|
151
152
|
}
|
152
153
|
} catch (err) {
|
153
154
|
// console.log(err);
|