Skip to content

Commit

Permalink
fix(sandpack-react): disable LanguageTool extention for code editor
Browse files Browse the repository at this point in the history
  • Loading branch information
amir2mi committed Apr 10, 2023
1 parent a1000f6 commit 73e8fc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sandpack-react/src/components/CodeEditor/CodeMirror.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ export const CodeMirror = React.forwardRef<CodeMirrorRef, CodeMirrorProps>(
});

view.contentDOM.setAttribute("data-gramm", "false");
view.contentDOM.setAttribute("data-lt-active", "false");
view.contentDOM.setAttribute(
"aria-label",
filePath ? `Code Editor for ${getFileName(filePath)}` : `Code Editor`
Expand Down

0 comments on commit 73e8fc5

Please sign in to comment.