/// <summary> /// Informs Antidote about the current active segment from the Studio Editor. In this case /// this method will provide the segment id because in Studio the Antidote Zone and Area correspond /// to a Segment in the Studio editor. /// </summary> /// <param name="id">The document id</param> /// <param name="index">Identifier for current area</param> /// <returns>Returns the identifier of the text field</returns> public int DonneIdZoneDeTexte(int id, int index) { var segmentId = _editorService.GetCurrentSegmentId(index); Log.Verbose("Prepare to send segment {@segmentId} from document with id {@id} to Antidote", segmentId, id); return(segmentId); }
/// <summary> /// Informs Antidote about the current active segment from the Studio Editor. In this case /// this method will provide the segment id because in Studio the Antidote Zone and Area correspond /// to a Segment in the Studio editor. /// </summary> /// <param name="id">The document id</param> /// <param name="index">Identifier for current area</param> /// <returns>Returns the identifier of the text field</returns> public long DonneIdZoneDeTexte(long id, long index) { return(_editorService.GetCurrentSegmentId(index)); }