N°9128 - Update CKEditor5 to v48

This commit is contained in:
Stephen Abello
2026-04-21 16:37:45 +02:00
parent 805087a01b
commit 008eb7ae5b
7 changed files with 21 additions and 17 deletions

View File

@@ -6,15 +6,14 @@ use Combodo\iTop\Application\TwigBase\Twig\TwigHelper;
use Combodo\iTop\Application\WebPage\WebPage;
use Combodo\iTop\Renderer\BlockRenderer;
use Combodo\iTop\Renderer\RenderingOutput;
use DBSearch;
use Dict;
use DOMSanitizer;
use Exception;
use ExceptionLog;
use UserRights;
use MetaModel;
use DBSearch;
use UserRights;
use utils;
use appUserPreferences;
/**
* Class CKEditorHelper
@@ -266,7 +265,7 @@ HTML;
if (file_exists(APPROOT.$sLanguageFileRelPath)) {
$aJSRelPaths[] = $sLanguageFileRelPath;
} else {
$sLanguageFileRelPath = 'node_modules/ckeditor5-itop-build/build/translations/'.$sLanguage.'.js';
$sLanguageFileRelPath = 'node_modules/ckeditor5-itop-build/build/translations/'.$sLanguage.'.umd.js';
if (file_exists(APPROOT.$sLanguageFileRelPath)) {
$aJSRelPaths[] = $sLanguageFileRelPath;
}