@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.
@@ -215,7 +215,8 @@ const MiniToolbar = props => {
215
215
  setPopper: setPopper,
216
216
  onClose: onClose,
217
217
  search: search,
218
- onSearch: onSearch
218
+ onSearch: onSearch,
219
+ closeMainPopup: onClose
219
220
  })]
220
221
  }) : null
221
222
  })]
@@ -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
- return getElementProperty(element, "font-size");
150
+ const fontSize = getElementProperty(element, "font-size");
151
+ return fontSize || 16;
151
152
  }
152
153
  } catch (err) {
153
154
  // console.log(err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flozy/editor",
3
- "version": "9.9.1",
3
+ "version": "9.9.2",
4
4
  "description": "An Editor for flozy app brain",
5
5
  "files": [
6
6
  "dist"