Implemented: plugin CSS

RainLoop still had a TODO for implementing plugin CSS
This is now used by the CKEditor plugin
This commit is contained in:
djmaze 2021-04-01 21:01:35 +02:00
parent 94abf288ba
commit d2534b5ed9
4 changed files with 260 additions and 84 deletions

View file

@ -4,9 +4,9 @@ class CKEditorPlugin extends \RainLoop\Plugins\AbstractPlugin
{
const
NAME = 'CKEditor',
VERSION = '2.0',
RELEASE = '2021-03-25',
REQUIRED = '2.4.2',
VERSION = '2.1',
RELEASE = '2021-04-01',
REQUIRED = '2.4.4',
DESCRIPTION = 'Use CKEditor instead of Squire as WYSIWYG';
public function Init() : void
@ -32,6 +32,7 @@ class CKEditorPlugin extends \RainLoop\Plugins\AbstractPlugin
}
if (\is_file("{$path}/ckeditor.js")) {
$this->addCss('ckeditor.less');
$this->addJs('ckeditor.js');
}
}