Skip to content

Allows any URL to be embedded using a WYSIWYG and text format.

Notifications You must be signed in to change notification settings

xkungfu/url_embed

This branch is 1 commit behind drupal-media/url_embed:8.x-1.x.

Folders and files

NameName
Last commit message
Last commit date
Aug 20, 2015
Apr 29, 2016
Jun 29, 2016
Jun 25, 2015
Feb 2, 2016
Dec 15, 2015
Jun 24, 2015
Dec 15, 2015
Jun 24, 2015
Jan 5, 2016
Jan 5, 2016
Aug 5, 2015
Aug 20, 2015
Sep 1, 2015

Repository files navigation

URL Embed Module

Travis build status Scrutinizer code quality

URL Embed module allows any URL to be embedded using a text editor.

Requirements

Installation

URL Embed can be installed via the standard Drupal installation process.

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.

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

About

Allows any URL to be embedded using a WYSIWYG and text format.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 82.5%
  • JavaScript 15.4%
  • Shell 2.1%