Skip to content

codemirror/internals/functions

FunctionDescription
defineExtensionRegisters a new editor extension method.
defineInitHookRegisters a function to be called when an editor is initialized.
defineModeRegisters a new editor mode.
defineOptionRegisters a new editor option.
fromTextAreaCreates a CodeMirror 5 editor from a textarea element.
isWordCharChecks whether a character is a word character.
normalizeKeyMapNormalizes a key map, expanding multi-stroke key bindings.
offRemoves an event handler from the given target.
onRegisters an event handler on the given target.
registerGlobalHelperRegisters a global helper with a predicate.
registerHelperRegisters a helper value for a specific type.
signalFires a signal (event) on the given target.