July 5, 2015
11:06 a.m.
The cleaner way would be to use TextEditor as default EditorClass in TextModel "beForText" and SmalltalkEditor for "beForCode". With that, the menublock coude ask the editor class for the default menu (now it uses SmalltalkEditors menu as default)
That would work only if the TextModel would always have some EditorClass; so if you wanted your custom menu you would have to create a new EditorClass object. While this in principle is ok, Spec already has block-based API so I would stick to it.