Bugfix and refactoring

Bugfix: Editor caret offset not reset after context action command
execution
Refactoring: String constants replaced by class constants