Ok...this is a bit of a sneak peek on a feature that has been added for the next MODx release. In a nutshell, I’ve had a few folks asking if there was a way to use a plain textarea instead of FCKEditor or TinyMCE when editing a document. The answer? Yes...but it would have required a bogus plugin...which doesn’t make sense in this case. So...instead, I opted to just add an option to allow selecting "None" under the System Configuration thus forcing the content area to display a plain textarea instead of an RTE. Simple...and it works well!
Now that that’s out of the way, another thing I thought would be nice is to allow switching between the different editors without having to visit the System Configuration page each time. I ran into this problem while attempting to add a document that would act as a pure CSS content page...which can be a bitch to edit without FCKEditor and TinyMCE screwing up the code! So, what I thought would be nice is to have a simple dropdown menu that allows you to select the editor you want to use: None, FCKEditor, or any other editor that has been added in (TinyMCE, Xinha). This way, if I edit a document that just has pure CSS code in it, I can switch to ’None’ and safely edit my document knowing that FCKEditor isn’t going to screw it up. Works great and I’m happy! The dropdown was added just below the main content editor like so:
Attached is a zip file of the three files that have changes to them. These are based off of the default files in version 0.9.1 so if you’ve made changes to these file make sure and run a comparison check against them. These files will go in your /manager/actions/dynamic directory. I’ve tested the code in Firefox and IE 6 on XP and feel pretty confident that it’ll work nicely on the Mac and Linux as well. Let me know if you find a problem with it.
Aside from these changes, I’m also planning to change the way the Template and Chunk editing works. I don’t see any reason why we couldn’t implement similar functionality in these sections. I’ll be experimenting with the code here and if all goes well I’ll submit my changes for the next version very soon.
Have fun!
Jeff