Bug fix: the editor toolbar buttons now light up properly.
Removed some old code.