Now codesnippet plugin is added by config.extraPlugins property. Changed method to generate editor init code.