fixing bug of activate/deactivate editor without initing the plugin