modmore / CodeMirror

Integration for CodeMirror into MODx Revolution
12 stars 7 forks source link

Code doesn't display on first attempt when editing files #9

Closed jrotering closed 13 years ago

jrotering commented 14 years ago

When CodeMirror is selected as which_element_editor (Revo 2.0pl), it also becomes the editor for files in the Files tree IF they are left-clicked on rather than right-clicking and choosing "edit file".

The more I think of it, the fact that it works on Files at all is probably an unintentional bug/feature, right?

Anyway, left-clicking on a file opens the file for editing, but the code usually does not display in the CodeMirror area the first time. If you have the file open, then left-click again on that same file in the tree, it seems to always correctly display the file contents in the CodeMirror area.

Windows XP, Chrome & Firefox...

splittingred commented 13 years ago

Fixed with update to CodeMirror 2