Context
As a Wikipedia Preview partner
I want the option to enable Wikipedia Preview on links
So I don't have to wait for more complex features
Acceptance criteria
- When Wikipedia links exist on a page (or always, if that conditional is not possible) the plugin loads the wikipediaPreview.production.js file and initializes it with the following options
- root: document.querySelector('.entry-content')
- detectLinks: true
Notes
The goal of this task is to be able to release a working plugin quickly before we deal with the custom editors. We need to think of a migration path between this version and the next so it keeps working if we stop detecting links by default. We could save a hidden setting for it.