We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96cdfb6 commit 4acc428Copy full SHA for 4acc428
src/common/components/TextInput/TextInput.tsx
@@ -6,15 +6,15 @@ import { isUserSelectingTag } from "./TagList/TagList";
6
7
export type TextInputProps = {
8
onSubmit?: (plainText: string, html: string) => void;
9
- parentWindow: Window;
+ parentWindow?: Window;
10
};
11
12
let editor: Editor | null = null;
13
14
export const TextInput = (props: TextInputProps) => {
15
const { onSubmit, parentWindow } = props;
16
editor = useEditor({
17
- extensions: getExtensions(parentWindow),
+ extensions: getExtensions(parentWindow ?? window),
18
editorProps: {
19
attributes: {
20
"aria-label": "Add a spark",
0 commit comments