gplcart / codemirror
Installs: 0
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:gplcart-module
Requires
- assets/codemirror: 5.19.0
- gplcart/composer-module-installer: ^1
This package is not auto-updated.
Last update: 2024-12-22 01:58:50 UTC
README
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.
- From your web root directory:
composer require gplcart/codemirror
. If the module was downloaded and placed intosystem/modules
manually, runcomposer update
to make sure that all 3-d party files are presented in thevendor
directory. - Go to
admin/module/list
end enable the module - Adjust settings on
admin/module/settings/codemirror