Fix for resource overriding

Added addition check for selected editor, otherwise can breaks resource
string even another editor selected.