mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-17 06:18:44 +02:00
N°9128 - Update CKEditor5 to v48 (#896)
* N°9128 - Update CKEditor5 to v48 * Move some CSS vars to ckeditor, align variable overload in portal and backoffice * Add specifics to 3.2 portal * Update CKEditor5 build files * Update scssphp with patched version that handles pseudo selectors and attribute selectors * Update scssphp patched version to fix missing $this * Fix translations specific language file import * Remove unused maximize parameters * Update CKEditor5 build files * Fix font size/color for 3.2 portal * Avoid CKEditor styles from bleeding into fields
This commit is contained in:
@@ -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
|
||||
@@ -47,7 +46,6 @@ class CKEditorHelper
|
||||
// configuration
|
||||
$aConfiguration = [
|
||||
'language' => $sLanguage,
|
||||
'maximize' => [],
|
||||
'detectChanges' => [
|
||||
'initialValue' => $sInitialValue,
|
||||
],
|
||||
@@ -262,11 +260,11 @@ HTML;
|
||||
// add corresponding ckeditor language file
|
||||
// P1 language + country
|
||||
// P2 language
|
||||
$sLanguageFileRelPath = 'node_modules/ckeditor5-itop-build/build/translations/'.$sLanguage.'-'.$sCountry.'.js';
|
||||
$sLanguageFileRelPath = 'node_modules/ckeditor5-itop-build/build/translations/'.$sLanguage.'-'.$sCountry.'.umd.js';
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user