|
Use CodeMirror to edit code
|
|
03-27-2011, 12:48 PM
Post: #1
|
|||
|
|||
|
Use CodeMirror to edit code
The code editor that you are using right now is a bit buggy. Codemirror is more robust and has more activity.
Thanks for this really great CMS. |
|||
|
03-27-2011, 06:44 PM
(This post was last modified: 03-27-2011 06:46 PM by thruska.)
Post: #2
|
|||
|
|||
|
RE: Use CodeMirror to edit code
Both are buggy/flaky but CodeMirror has even more annoying bugs in it from just basic preliminary testing of their demos in various browsers. EditArea also has built-in tabbed editing capabilities and configurable toolbar buttons without any additional support requirements. But if you like CodeMirror better, it is possible to replace EditArea with CodeMirror by replacing the contents of 'support/editfile.js' with brand new code. If you get it working, let me know and we can go over about how to release it. For the main release, I'm sticking with EditArea partly because ALL in-browser text editors are kind of flaky/buggy to begin with and partly because each programmer likes different things - it is impossible to please everyone. IMO, EditArea reaches the widest audience with the greatest consistency between browsers. It also works decently with AJAX and keeps maintenance issues down on my end.
I'm not adverse to replacement drop-ins. In fact, I created support/editfile.js specifically because I suspected some people might not like EditArea and some programmer would eventually be insane enough to replace it with something else. editcontent.js is similar for WYMEditor. Replacing either one though is not a trivial task. I should warn you that the main layout/CSS of the admin is slightly "broken", so I busted out the 'table' tag as a quick hack when I was working with EditArea. Admin Pack contains the necessary fix. Just be aware of this bug when you see the random 'table' tag. Firefox 4 was just released, so I'm sure weird, unexpected quirks popped up in both the EditArea and WYMEditor components. And thanks for the compliment. Author of Barebones CMS If you found my reply to be helpful, be sure to donate! All funding goes toward future product development. |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)

Search
Help



