Skip to content

Commit

Permalink
Hide result cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshineplan committed May 11, 2024
1 parent e36bd97 commit 811a754
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/App.svelte
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
<script lang="ts">
import { javascript } from "@codemirror/lang-javascript";
import {
EditorView,
drawSelection,
highlightActiveLineGutter,
lineNumbers,
placeholder,
} from "@codemirror/view";
import { EditorState } from "@codemirror/state";
import { highlightSelectionMatches } from "@codemirror/search";
import { EditorView } from "codemirror";
import { onMount } from "svelte";
import * as stp from "./stp";
import Checkbox from "./Checkbox.svelte";
Expand Down Expand Up @@ -47,7 +48,7 @@
highlightSelectionMatches(),
lineNumbers(),
EditorView.lineWrapping,
EditorView.editable.of(false),
EditorState.readOnly.of(true),
],
});
});
Expand Down
4 changes: 4 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@
.cm-scroller {
border-radius: inherit;
}

#result .cm-cursor {
display: none;
}

0 comments on commit 811a754

Please sign in to comment.