Add SOS CKEditor configuration demo
This commit is contained in:
25 files changed
+970
No files matched your search
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Implements hook_civicrm_coreResourceList().
|
||||
*/
|
||||
function ckeditor5_sos_demo_civicrm_coreResourceList(&$items, $region) {
|
||||
if ($region !== 'html-header') {
|
||||
return;
|
||||
}
|
||||
|
||||
$editorId = Civi::settings()->get('editor_id');
|
||||
if (!in_array($editorId, ['CKEditor5-elfinder', 'CKEditor5-base64'], TRUE)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Civi::resources()
|
||||
->addStyleFile('one.jonathandhn.ckeditor5sos', 'fonts/roboto/index.css', 20, 'html-header')
|
||||
->addScriptFile('one.jonathandhn.ckeditor5sos', 'js/editor-config.js', 20, 'html-header');
|
||||
}
|
||||
Reference in new issue
Block a user