AppleNewsAPI icon indicating copy to clipboard operation
AppleNewsAPI copied to clipboard

Allow Anchors to use 'target' rather than 'targetComponentIdentifier'

Open dustinleblanc opened this issue 3 years ago • 0 comments

Apple supports both of these target types for anchors: https://developer.apple.com/documentation/apple_news/anchor

Allowing for setting anchors using just plain IDs instead of a component means that you can anchor items to specific paragraphs in a body field rather than anchoring to the body field itself (I am doing this within the context of a Drupal 8 site).

I imagine this would just be adding a setTarget to the Anchor class.

dustinleblanc avatar Mar 02 '21 17:03 dustinleblanc