PHPackages                             egorlaw/ckeditor\_codemirror - 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. [Templating &amp; Views](/categories/templating)
4. /
5. egorlaw/ckeditor\_codemirror

AbandonedDrupal-library[Templating &amp; Views](/categories/templating)

egorlaw/ckeditor\_codemirror
============================

Composer wrapper for CKEditor Codemirror plugin

2.0.0(8y ago)010.3kMITJavaScript

Since Nov 15Pushed 8y ago1 watchersCompare

[ Source](https://github.com/eglaw/ckeditor.codemirror)[ Packagist](https://packagist.org/packages/egorlaw/ckeditor_codemirror)[ Docs](https://github.com/egorlaw/ckeditor.codemirror)[ RSS](/packages/egorlaw-ckeditor-codemirror/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (7)Used By (0)

CKEditor Codemirror Plugin
==========================

[](#ckeditor-codemirror-plugin)

This is a mere copy of the [CKEditor Codemirror](https://github.com/w8tcha/CKEditor-CodeMirror-Plugin) made for the only purpose to serve it via `$ composer install` on Packagist.org

All the issues and the questions sould be referred on the original developer.

Notes about install
-------------------

[](#notes-about-install)

Inside your drupal project's **composer.json** there's a little *hack* that needs to be applied, as there's a problem with installation. You'll write down something like:

```
"require": {
  ...
  "drupal/ckeditor_codemirror": "^1.1",
  "egorlaw/ckeditor_codemirror": "^1.0",
  ...
},
"extras": {
  "installer-paths": {
    "web/core": ["type:drupal-core"],
    "web/libraries/{$name}": ["type:drupal-library"],
    "web/modules/contrib/{$name}": ["type:drupal-module"],
    "web/profiles/contrib/{$name}": ["type:drupal-profile"],
    "web/themes/contrib/{$name}": ["type:drupal-theme"],
  }
}

```

The `$ composer install` comand will do everything quite correct and will place the codemirror plugin inside your library folder as `ckeditor_codemirror`. There's a little problem with that: The contrib module **ckeditor\_codemirror** is looking into another path: `library/ckeditor.codemirror/plugin.js` and unfortunatly it's hardcoded. So to avoid patching the module just make sure to rename the folder during the `$ composer install` by adding this row inside extras.installer-paths:

`"web/libraries/ckeditor.codemirror": ["egorlaw/ckeditor_codemirror"],`

BEFORE the `"web/libraries/{$name}": ["type:drupal-library"],` row! Resulting in :

```
"extras": {
  "installer-paths": {
    "web/core": ["type:drupal-core"],
    "web/libraries/ckeditor.codemirror": ["egorlaw/ckeditor_codemirror"],
