Skip to content

Commit

Permalink
[4.3] Codemirror corrects path for keybinding script +(obey debug - v…
Browse files Browse the repository at this point in the history
…ersioning) (#40051)
  • Loading branch information
dgrammatiko authored May 8, 2023
1 parent af1aaa9 commit ebac512
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/editors/codemirror/src/Extension/Codemirror.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

namespace Joomla\Plugin\Editors\CodeMirror\Extension;

use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Layout\LayoutHelper;
use Joomla\CMS\Plugin\CMSPlugin;
use Joomla\CMS\Plugin\PluginHelper;
Expand Down Expand Up @@ -237,7 +238,8 @@ public function onDisplay(
}

if ($options->keyMap !== 'default') {
$keyMapUrl = $this->basePath . 'keymap/' . $options->keyMap . '.min.js';
$keyMapUrl = HTMLHelper::_('script', $this->basePath . 'keymap/' . $options->keyMap . '.min.js', ['relative' => false, 'pathOnly' => true]);
$keyMapUrl .= '?' . $this->getApplication()->getDocument()->getMediaVersion();
}

$options->keyMapUrl = $keyMapUrl;
Expand Down

0 comments on commit ebac512

Please sign in to comment.