Added methods for text decoration in editor