diff --git a/src/element/textWysiwyg.tsx b/src/element/textWysiwyg.tsx index d9a7505f..4e8ef3a5 100644 --- a/src/element/textWysiwyg.tsx +++ b/src/element/textWysiwyg.tsx @@ -297,6 +297,7 @@ export const textWysiwyg = ({ filter: "var(--theme-filter)", maxHeight: `${editorMaxHeight}px`, }); + editable.scrollTop = 0; // For some reason updating font attribute doesn't set font family // hence updating font family explicitly for test environment if (isTestEnv()) {