refactor inplace editor switch

[``* `#17769 ` refactor inplace editor switch ``](http://community.openproject.org/work_packages/17769)