makinacorpus/drupal-ulink

Provide some input filters for making links, along with an optional CKEditor plugin

Installs: 354

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 8

Forks: 1

Open Issues: 0

Language:JavaScript

Type:drupal-module

2.1.5 2019-04-18 13:04 UTC

README

Provide some input filters for making links, along with an optional CKEditor plugin.

URL schemes and format filter

In two words, you can either write one of:

  • html <a href="entity:node/12">Some entity</a>
  • html <a href="entity://node/12">Some entity</a>
  • html <a href="{{node/12}}">Some entity</a>

in any text that would be php check_markup()'ed and filters will be processed and turned into correct Drupal URL or URL aliases.

CKEditor plugin

The CKEditor plugin requires ckeditor >= 4.

Generating URLs

You may use url('entity://node/12') to generate the node link, there is an hook_url_outbound_alter implementation that will do the job.