Add reference support to the editor