Fixes #1221 - Editor - problem with styling

Fixes #1221 - Editor - problem with styling

Credits to #ATofighi