PHPackages                             drupal-ckeditor-libraries/youtube - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. drupal-ckeditor-libraries/youtube

ActiveDrupal-library[Utility &amp; Helpers](/categories/utility)

drupal-ckeditor-libraries/youtube
=================================

drupal-ckeditor-libraries/youtube

2.1.14(6y ago)01.4kGPL-3.0-or-laterJavaScript

Since Apr 13Pushed 6y agoCompare

[ Source](https://github.com/drupal-ckeditor-libraries/youtube)[ Packagist](https://packagist.org/packages/drupal-ckeditor-libraries/youtube)[ RSS](/packages/drupal-ckeditor-libraries-youtube/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Youtube Plugin for CKEditor 4
=============================

[](#youtube-plugin-for-ckeditor-4)

Copyright © 2017 Jonnas Fonini .

This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See the LICENSE file for more details.

This plugin allow you to insert Youtube videos using embed code or just the video URL.

Installation
------------

[](#installation)

### With NPM

[](#with-npm)

1. npm install ckeditor-youtube-plugin
2. Add the plugin to CKEditor (config.js):

    ```
    CKEDITOR.plugins.addExternal('youtube', '../node_modules/ckeditor-youtube-plugin/youtube/');

    config.extraPlugins = 'youtube';
    ```

    You may need to adjust the plugin path. The example is assuming that you have the following directory structure:

    ```
    project
    └───ckeditor
    │   └───config.js
    └───node_modules
        └───ckeditor-youtube-plugin

    ```

### Manual

[](#manual)

Follow these steps:

1. Download the latest version of the plugin from Github.
2. Extract the downloaded file into the CKEditor's **plugins** folder.
3. Enable the plugin by changing or adding the extraPlugins line in your configuration (config.js):

    ```
    config.extraPlugins = 'youtube';
    ```

Configuration
-------------

[](#configuration)

The default options can be overriden on config.js.

Video width:

```
config.youtube_width = '640';
```

Video height:

```
config.youtube_height = '480';
```

Make responsive (ignore width and height, fit to width):

```
config.youtube_responsive = true;
```

Show related videos:

```
config.youtube_related = true;
```

Use old embed code:

```
config.youtube_older = false;
```

Enable privacy-enhanced mode:

```
config.youtube_privacy = false;
```

Start video automatically:

```
config.youtube_autoplay = false;
```

Show player controls:

```
config.youtube_controls = true;
```

Disable the change of settings. The elements on the list will be disabled (but still visible). See the available element list below.

```
config.youtube_disabled_fields = ['txtEmbed', 'chkAutoplay'];
```

#### List of UI elements

[](#list-of-ui-elements)

- txtEmbed
- txtUrl
- txtWidth
- txtHeight
- chkResponsive
- chkNoEmbed
- chkRelated
- chkOlderCode
- chkPrivacy
- chkAutoplay
- txtStartAt
- chkControls

How to use
----------

[](#how-to-use)

If everything is ok, a Youtube icon should appear on the CKEditor toolbar. Click it, paste your embed code or video URL and the video will be inserted.

Translators
-----------

[](#translators)

Thanks to those who helped translate the plugin

- Eyed Farra (ar)
- N. Petkov (bg)
- Lukáš Říha (cs)
- Sven Jansen (de)
- Dimitris Kotsakis (el)
- Victor (pollin14) (es)
- Kevin Rudissaar (et)
- Asier Iturralde Sarasola (eu)
- Jami Pietilä (fi)
- BiomanRouge (fr)
- Moshe Simantov (he)
- Karmacsi Gábor (hu)
- Francesco Zanoni (it)
- Yayoshi Nobuhide (ja)
- MinSoo Kim (ko)
- Holger Lockertsen (nb, nn)
- Patrick van Lier (nl)
- Michał Zalewski, Wirek (pl)
- Samuel Diogo (pt-br)
- Alexander Ustimenko (ru)
- ivanbarlog (sk)
- Çağdaş Yiğit (tr)
- Mykola Pukhalskyi (uk)
- Vu Thao (vi)
- trowa (zh)

[![Licensed under the WTFPL](https://camo.githubusercontent.com/82ee62dc54183600ee1ca11e0e6a75994bce19a0207aa9ec4c2c7850f2460a62/687474703a2f2f7777772e777466706c2e6e65742f77702d636f6e74656e742f75706c6f6164732f323031322f31322f777466706c2d62616467652d322e706e67 "Licensed under the WTFPL")](http://www.wtfpl.net)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2226d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/61d645797f8a01d1d7579ab4fd29917f10cd68a4249eb88df54345add9501a2f?d=identicon)[cobenash](/maintainers/cobenash)

---

Top Contributors

[![cobenash](https://avatars.githubusercontent.com/u/9973326?v=4)](https://github.com/cobenash "cobenash (1 commits)")

### Embed Badge

![Health badge](/badges/drupal-ckeditor-libraries-youtube/health.svg)

```
[![Health](https://phpackages.com/badges/drupal-ckeditor-libraries-youtube/health.svg)](https://phpackages.com/packages/drupal-ckeditor-libraries-youtube)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
