Merge commit '1375932c05' into stateful-events

This commit is contained in:
Felix Roos 2022-02-27 15:05:17 +01:00
commit 634d4f1099
22 changed files with 627 additions and 519 deletions

View file

@ -17,7 +17,7 @@ export default function CodeMirror({ value, onChange, options, editorDidMount }:
return <CodeMirror2 value={value} options={options} onBeforeChange={onChange} editorDidMount={editorDidMount} />;
}
export const markEvent = (editor) => (event) => {
export const markEvent = (editor) => (time, event) => {
const locs = event.context.locations;
if (!locs || !editor) {
return;