From ab7f747635543bd21a2bb9fe7f89a89609f91622 Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Mon, 20 Jul 2015 21:15:44 -0700 Subject: [PATCH] Change event in codemirror also have a `origin` field It can take different value depending on where it comes from and gover history merging, various values are `+move` `+insert` `+remove` `setValue`. --- codemirror/codemirror.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/codemirror/codemirror.d.ts b/codemirror/codemirror.d.ts index 4b0a7ca6d..5fc335ed6 100644 --- a/codemirror/codemirror.d.ts +++ b/codemirror/codemirror.d.ts @@ -601,6 +601,8 @@ declare module CodeMirror { text: string[]; /** Text that used to be between from and to, which is overwritten by this change. */ removed: string; + /** String representing the origin of the change event and wether it can be merged with history */ + origin: string; } interface EditorChangeLinkedList extends CodeMirror.EditorChange {