@bobfrankston/rmfmail 1.2.23 → 1.2.25

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.
@@ -2089,8 +2089,18 @@ async function createTinyMceEditor(container2, opts = {}) {
2089
2089
  const applyZoom = () => {
2090
2090
  try {
2091
2091
  const body = ed.getBody();
2092
- if (body)
2093
- body.style.fontSize = `${zoomPx}px`;
2092
+ if (!body)
2093
+ return;
2094
+ body.style.fontSize = `${zoomPx}px`;
2095
+ const win = ed.getWin && ed.getWin() || window;
2096
+ const raf = win.requestAnimationFrame || ((f) => setTimeout(f, 16));
2097
+ body.setAttribute("spellcheck", "false");
2098
+ raf(() => {
2099
+ try {
2100
+ body.setAttribute("spellcheck", "true");
2101
+ } catch {
2102
+ }
2103
+ });
2094
2104
  } catch {
2095
2105
  }
2096
2106
  };