Revize 26671569
Přidáno uživatelem Vojtěch Bartička před téměř 3 roky(ů)
Backend/Core/Services/AnnotationService/AnnotationServiceEF.cs | ||
---|---|---|
174 | 174 |
TagStartLengths = JsonConvert.DeserializeObject<List<int>>(annotation.CachedLengths); |
175 | 175 |
TagClosingPositions = JsonConvert.DeserializeObject<List<int>>(annotation.CachedClosingPositions); |
176 | 176 |
TagClosingLengths = JsonConvert.DeserializeObject<List<int>>(annotation.CachedClosingLengths); |
177 |
TagInstanceCSS = JsonConvert.DeserializeObject<List<TagInstanceCSSInfo>>(annotation.CachedCSS); |
|
177 | 178 |
|
178 | 179 |
// The annotation has been modified and we need to either add the new tag or remove the tag |
179 | 180 |
if (annotation.ModifiedType != EModified.NONE) |
... | ... | |
194 | 195 |
annotation.CachedClosingPositions = JsonConvert.SerializeObject(TagClosingPositions); |
195 | 196 |
annotation.CachedClosingLengths = JsonConvert.SerializeObject(TagClosingLengths); |
196 | 197 |
annotation.CachedDocumentHTML = docToRender; |
197 |
//annotation.CachedNodeDict = JsonConvert.SerializeObject(NodeDict);
|
|
198 |
annotation.CachedCSS = JsonConvert.SerializeObject(TagInstanceCSS);
|
|
198 | 199 |
context.SaveChanges(); |
199 | 200 |
} |
200 | 201 |
} |
... | ... | |
209 | 210 |
Note = annotation.Note, |
210 | 211 |
State = annotation.State, |
211 | 212 |
Type = IsHtml(documentContent.Content) ? EDocumentType.HTML : EDocumentType.TEXT, |
212 |
TagInstances = tagInstanceInfos |
|
213 |
TagInstances = tagInstanceInfos, |
|
214 |
CSSInfo = TagInstanceCSS |
|
213 | 215 |
}; |
214 | 216 |
|
215 | 217 |
NodeDict.Clear(); |
Také k dispozici: Unified diff
Small fixes