Linkit 5.x is altering the default link plugin (drupallink) instead of define its own.
We therefor have to figure out a way to set the data- attributes on the <a> tag when enabling Linkit on the default link plugin in case the text format uses the filter_html filter.
- data-entity-type
- data-entity-uuid
Or we can just show a text in the link plugin settings page, next to where you choose which Linkit profile to use for the link plugin, that tells the user to manually add the two data- attributes to the <a> tag.
Comment | File | Size | Author |
---|---|---|---|
#5 | innerdiff-2751301-2-5.txt | 6.46 KB | anon |
#5 | handle_the_new_data-2751301-5.patch | 4.73 KB | anon |
Comments
Comment #2
anonThis patch will alter the drupallink content HTML rules and add the two data attributes linkit needs if drupallink is activated.
Comment #3
anonComment #4
anonComment #5
anonAdded js-tests.
Comment #7
anon