Skip to content

ckeditor 5 toolbar not working with lang zh_cn #907

@purplegrape

Description

@purplegrape

Are you willing to create (at a later stage) a PR for that?

Yes

iTop version

No response

PHP version

No response

Reproduction procedure

as code in CKEditorHelper.php

// Extract language from user preferences
$sLanguageCountry = trim(UserRights::GetUserLanguage());
$sLanguage = strtolower(explode(' ', $sLanguageCountry)[0]);
$aSanitizerConfiguration = self::GetDOMSanitizerForCKEditor();

"ZH CN" will get "zh" as lang code in ckedtor 5, in fact ,"zh-cn" should be the correct one

Additional information (if needed)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions