codemirror/internals/functions
Functions
Section titled “Functions”| Function | Description |
|---|---|
| defineExtension | Registers a new editor extension method. |
| defineInitHook | Registers a function to be called when an editor is initialized. |
| defineMode | Registers a new editor mode. |
| defineOption | Registers a new editor option. |
| fromTextArea | Creates a CodeMirror 5 editor from a textarea element. |
| isWordChar | Checks whether a character is a word character. |
| normalizeKeyMap | Normalizes a key map, expanding multi-stroke key bindings. |
| off | Removes an event handler from the given target. |
| on | Registers an event handler on the given target. |
| registerGlobalHelper | Registers a global helper with a predicate. |
| registerHelper | Registers a helper value for a specific type. |
| signal | Fires a signal (event) on the given target. |