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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

anon created an issue. See original summary.

anon’s picture

Issue summary: View changes
FileSize
2.46 KB

This patch will alter the drupallink content HTML rules and add the two data attributes linkit needs if drupallink is activated.

anon’s picture

Status: Active » Needs review
anon’s picture

Issue tags: +Needs tests, +JavaScriptTest
anon’s picture

FileSize
4.73 KB
6.46 KB

Added js-tests.

  • anon committed ee79aed on 8.x-5.x
    Issue #2751301 by anon: Handle the new data- attributes for text formats...
anon’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.