From 20ae2296d3007d62ef638d92ce7ad6efe7de0c9d Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Thu, 9 Feb 2012 07:47:20 +0000 Subject: [PATCH] CodeMirror now created as dynamic object No longer creates 10 x instances Instead creates CM objects (& cMActiveLine) on demand All hardcoded refs from 1-10 removed, now dynamic Additional code to stop it seeing just loaded files as changed li tags are now also inline --- editor.php | 55 +++++++++++++++++++++++++++++++----------------------- 1 file changed, 32 insertions(+), 23 deletions(-) diff --git a/editor.php b/editor.php index f09f481..e28a888 100644 --- a/editor.php +++ b/editor.php @@ -24,10 +24,7 @@