Plain text editor

Hello everyone,
I was wondering if there’s a mode for plain text but using codemirror’s IDE, not necessarily that the text should be a programming language, just some normal text.

If you don’t load any language mode, you’ll have a plain text editor. Any specific features you were looking for?

impressive, does it also have search commands (Ctrl+f) ? tabs and so on
and by not loading any language mode you main returning null or ‘’ or what exactly

CodeMirror is an editor component, not an IDE, so tabs are outside the scope.

It does have a package for implementing search. When you create the editor, you have to configure it like this:

import {
  highlightSelectionMatches,
  search,
  searchKeymap,
} from "@codemirror/search";

EditorState.create({
  // ... other stuff
  extensions: [
    // ... other stuff
    search(),
    highlightSelectionMatches(),
    keymap.of([
      // ... other stuff
    ...searchKeymap,
    ]),
  ]
})