Skip to content

Commit

Permalink
fix: add custom css to php script
Browse files Browse the repository at this point in the history
  • Loading branch information
zieglermarian committed Feb 21, 2024
1 parent b03b18f commit 502a7a4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions service/src/main/php/src/tools/h5p/H5P.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ public function showEditor($content, Response $response) {
foreach(\H5PEditor::$styles as $b) {
$integration['editor']['assets']['css'][] = WWWURL . '/vendor/h5p/h5p-editor/' . $b;
}
$integration['editor']['assets']['css'][] = WWWURL . '/src/tools/h5p/js/customEdu.css';
foreach(\H5PCore::$scripts as $b) {
$integration['editor']['assets']['js'][] = WWWURL . '/vendor/h5p/h5p-core/' . $b;
}
Expand Down Expand Up @@ -228,8 +229,6 @@ public function showEditor($content, Response $response) {
$scripts[] = WWWURL . '/src/tools/h5p/js/h5peditor-init.js';




$titleShow = $_SESSION[$this->connectorId]['node']->node->title;
if(empty($titleShow)){
$titleShow = $_SESSION[$this->connectorId]['node']->node->name;
Expand Down
2 changes: 0 additions & 2 deletions service/src/main/php/src/tools/h5p/js/h5peditor-init.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@
H5PEditor.ajaxPath = H5PIntegration.editor.ajaxPath;
H5PEditor.filesPath = H5PIntegration.editor.filesPath;
H5PEditor.apiVersion = H5PIntegration.editor.apiVersion;
H5PEditor.contentLanguage = H5PIntegration.editor.language;

// Semantics describing what copyright information can be stored for media.
H5PEditor.copyrightSemantics = H5PIntegration.editor.copyrightSemantics;
H5PEditor.metadataSemantics = H5PIntegration.editor.metadataSemantics;

// Required styles and scripts for the editor
H5PEditor.assets = H5PIntegration.editor.assets;
H5PEditor.assets.css.push('/src/tools/h5p/js/customEdu.css')

// Required for assets
H5PEditor.baseUrl = '';
Expand Down

0 comments on commit 502a7a4

Please sign in to comment.