2017 © Pedro Peláez
 

drupal-module url_embed

Allows embedding of URLs using the Drupal 8 WYSIWYG or link fields.

image

drupal_mods/url_embed

Allows embedding of URLs using the Drupal 8 WYSIWYG or link fields.

  • Sunday, February 4, 2018
  • by gge
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

URL Embed Module

Travis build status Scrutinizer code quality, (*1)

URL Embed module allows any URL to be embedded using a text editor., (*2)

Requirements

Installation

URL Embed can be installed via the standard Drupal installation process., (*3)

Configuration

  • Install and enable Embed module.
  • Install and enable URL Embed module.
  • Go to the 'Text formats and editors' configuration page: /admin/config/content/formats, and for each text format/editor combo where you want to embed URLs, do the following:
    • Enable the 'Display embedded URLs' filter.
    • Drag and drop the 'URL' button into the Active toolbar.
    • If the text format uses the 'Limit allowed HTML tags and correct faulty HTML' filter, ensure the necessary tags and attributes are whitelisted: add <drupal-url data-embed-url data-url-provider> to the 'Allowed HTML tags' setting. (Will happen automatically after https://www.drupal.org/node/2554687.)

Usage

  • For example, create a new Article content.
  • Click on the 'URL' button in the text editor.
  • Enter the URL that you want to embed.
  • Optionally, choose to align left, center or right.

Embedding URLs without WYSIWYG

Users should be embedding URLs using the CKEditor WYSIWYG button as described above. This section is more technical about the HTML markup that is used to embed the actual URL., (*4)

<drupal-url data-embed-url="https://www.youtube.com/watch?v=xxXXxxXxxxX" data-url-provider="YouTube" />

The Versions

04/02 2018

dev-8.x-1.x

dev-8.x-1.x https://www.drupal.org/project/url_embed

Allows embedding of URLs using the Drupal 8 WYSIWYG or link fields.

  Sources   Download

GPL-2.0+

The Requires