The FCKEditor "What you see is what you get" (WYSIWYG) html editor is a fantastic tool and really improves the usability of LimeSurvey when it comes to changing the look and feel of your question text. But there are times when I really want or need to get into the HTML code for the layout.
Actually, these times are extremely common. To edit the source code I find myself having to switch from the small editor, to the full screen editor - because in the full-screen editor there is a "source" button. In fact it happens so often, I wanted a way to go direct to editing the source, and save myself the extra mouse click (not to mention the short, but not insignificant wait while the screen redraws).
Thanks to the prompting of my wife (who is usually responsible for helping me move from the "I wish" stage to the "I've done it" stage), I can now show you how to add this very helpful button to your default editor buttonbar.
Well, it turns out it's quite easy to do (if you're able to modify your server files that is).
In your local LimeSurvey installation directory, a few directories down, lives a configuration file which sets which buttons are visible in your FCKEditor, and when they are available. To make the "Source" button available in your default button bar you need to open and edit the "limesurvey-config.js" file in the fckeditor directory.
In current editions of LimeSurvey (1.87 and above) the directory is:
[your limesurvey root]/admin/scripts/fckeditor.266/
Open the file "limesurvey-config.js" and search for the lines that read:
FCKConfig.ToolbarSets["Basic"] = [
['LimeFitWin','-','Bold','Italic','Underline','-','OrderedList','UnorderedList','-','Outdent','Indent','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','Link','Unlink','Image','-','Table','-','LimeReplacementFields']
] ;
Modify these lines so that they read:
FCKConfig.ToolbarSets["Basic"] = [
['LimeFitWin','-','Bold','Italic','Underline','-','OrderedList','UnorderedList','-','Outdent','Indent','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','Link','Unlink','Image','-','Table','-','LimeReplacementFields','Source']
] ;
and save your file.
Now, shutdown your web browser, and restart it. Next time you use one of your editors, you'll have a direct line to your source code
Hope this tip has been helpful.
Jason