diff --git a/packages/text-editor/src/components/StyledTextEditor.svelte b/packages/text-editor/src/components/StyledTextEditor.svelte index 747f7a7b37..042712d911 100644 --- a/packages/text-editor/src/components/StyledTextEditor.svelte +++ b/packages/text-editor/src/components/StyledTextEditor.svelte @@ -16,7 +16,7 @@ import { Markup } from '@hcengineering/core' import { IntlString } from '@hcengineering/platform' import { EmptyMarkup } from '@hcengineering/text' - import { Button, ButtonSize, Scroller } from '@hcengineering/ui' + import { Button, type ButtonSize, Scroller } from '@hcengineering/ui' import { AnyExtension, mergeAttributes } from '@tiptap/core' import { createEventDispatcher } from 'svelte' import textEditorPlugin from '../plugin' @@ -51,8 +51,6 @@ let textEditor: TextEditor | undefined = undefined - let contentHeight: number - export function submit (): void { textEditor?.submit() } @@ -162,13 +160,7 @@ on:click|preventDefault|stopPropagation={() => (needFocus = true)} >