add getFormatData for editor