• Robert Knight's avatar
    Save context metadata provided by LMS app with new annotations · 4fe2f5bf
    Robert Knight authored
    When the embedder frame (eg. our LMS app) provides context metadata to be saved
    with annotations via the `annotationMetadata` config property, save that with
    new annotations in the `metadata` field.
    
    We add this information only when an annotation is created, and not on
    subsequent edits, because the main use case in the LMS context is to record the
    assignment where the annotation was created. If the user edits that annotation
    subsequently in another assignment, we don't want it to be "moved" by updating
    the `metadata` field.
    
    Part of https://github.com/hypothesis/lms/issues/5698
    4fe2f5bf
config.ts 8.53 KB