Skip to content

Commit

Permalink
Tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
wandyezj committed Jun 15, 2024
1 parent d59b63a commit 96806fb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { SnipWithSource } from "../core/Snip";
import { updateMonacoLibs } from "../core/updateMonacoLibs";
import { makeStyles } from "@fluentui/react-components";

// cspell:ignore tabster

const useStyles = makeStyles({
editor: {
width: "100%",
Expand Down Expand Up @@ -108,5 +110,6 @@ export function Editor({

setupEditor();

return <div className={styles.editor} ref={container}></div>;
// This allows the editor to capture tabs: data-tabster='{"uncontrolled":{}}'
return <div data-tabster='{"uncontrolled":{}}' className={styles.editor} ref={container}></div>;
}

0 comments on commit 96806fb

Please sign in to comment.