RefreshEditor

Called when the editor needs to be refreshed