if ($form_state->
get('used_smart_default_settings'
)) { $format_name =
$editor->
getFilterFormat()->
get('name'
);
$this->logger->
info($this->
t('The migration of %text_format to CKEditor 5 has been saved.',
['%text_format' =>
$format_name]));
} } /**
* {@inheritdoc}
*/
public function getJSSettings(Editor
$editor) { $toolbar_items =
$editor->
getSettings()['toolbar'
]['items'
];
$plugin_config =
$this->ckeditor5PluginManager->
getCKEditor5PluginConfig($editor);
$settings =
[ 'toolbar' =>
[ 'items' =>
$toolbar_items,
'shouldNotGroupWhenFull' =>
in_array('-',
$toolbar_items, TRUE
),
],
] +
$plugin_config;
if ($this->moduleHandler->
moduleExists('locale'
)) { $language_interface =
$this->languageManager->
getCurrentLanguage();
$settings['language'
]['ui'
] =
_ckeditor5_get_langcode_mapping($language_interface->
getId());
}