Improve BCodeEditor

Add ability to set preferred file type.