Skip to content

gplcart/codemirror

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Scrutinizer Code Quality

Code Mirror is a GPL Cart module that provides Code Mirror library for other modules. Don't install if your modules don't require it.

Example of usage in your module - add Code Mirror on every page within admin area

/**
 * Implements hook "construct.controller.backend"
 * @param \gplcart\core\controllers\backend\Controller $object
 */
public function hookConstructControllerBackend($object)
{
	if ($this->config->isEnabledModule('codemirror')) {
		/* @var $module \gplcart\modules\codemirror\Codemirror */
		$module = $this->config->getModuleInstance('codemirror');
		$module->addLibrary($object);
	}
}

Installation

This module requires 3-d party library which should be downloaded separately. You have to use Composer to download all the dependencies.

  1. From your web root directory: composer require gplcart/codemirror. If the module was downloaded and placed into system/modules manually, run composer update to make sure that all 3-d party files are presented in the vendor directory.
  2. Go to admin/module/list end enable the module
  3. Adjust settings on admin/module/settings/codemirror

Releases

No releases published

Packages

No packages published

Languages