GithubHelp home page GithubHelp logo

segovia94 / url_embed Goto Github PK

View Code? Open in Web Editor NEW

This project forked from drupal-media/url_embed

0.0 1.0 0.0 109 KB

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

Home Page: https://www.drupal.org/project/url_embed

Shell 2.06% JavaScript 15.43% PHP 82.52%

url_embed's Introduction

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" />

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.