From 623f6823a4d121cde6e0f5f0f46846567f3f0530 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Wed, 28 Apr 2010 09:21:48 +0200 Subject: [PATCH] fix demo --- demo/editor.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/editor.html b/demo/editor.html index adeb605c..f0d054af 100644 --- a/demo/editor.html +++ b/demo/editor.html @@ -255,7 +255,7 @@ ace.addListener(container, "drop", function(e) { editor.onTextInput(reader.result); modeEl.value = mode; - editor.setMode(modes[mode]); + editor.getDocument().setMode(modes[mode]); } reader.readAsText(file); }