Skip to content
Snippets Groups Projects

Issue #3304736: Automatically upgrade Text Editors using CKEditor 4 to use CKEditor 5

Open Issue #3304736: Automatically upgrade Text Editors using CKEditor 4 to use CKEditor 5
Open Wim Leers requested to merge issue/drupal-3304736:3304736-auto-upgrade into 10.0.x
Files
4
@@ -307,14 +307,14 @@ public function computeSmartDefaultSettings(?EditorInterface $text_editor, Filte
}
$end = $can_access_dblog ?
$this->t('Additional details are available <a target="_blank" href=":dblog_url">in your logs</a>.',
$this->t('Additional details are available in the <a target="_blank" href=":dblog_url">site logs</a>.',
[
':dblog_url' => Url::fromRoute('dblog.overview')
->setOption('query', ['type[]' => 'ckeditor5'])
->toString(),
]
) :
$this->t('Additional details are available in your logs.');
$this->t('Additional details are available in the site logs.');
$messages[MessengerInterface::TYPE_STATUS][] = new FormattableMarkup('@beginning @plugin_info @source_editing_info. @end', [
'@beginning' => $beginning,
@@ -372,15 +372,16 @@ public function computeSmartDefaultSettings(?EditorInterface $text_editor, Filte
}, ''), " ,"),
]
) : '';
$can_access_dblog = ($this->currentUser->hasPermission('access site reports') && $this->moduleHandler->moduleExists('dblog'));
Please register or sign in to reply
$end = $can_access_dblog ?
$this->t('Additional details are available <a target="_blank" href=":dblog_url">in your logs</a>.',
$this->t('Additional details are available in the <a target="_blank" href=":dblog_url">site logs</a>.',
[
':dblog_url' => Url::fromRoute('dblog.overview')
->setOption('query', ['type[]' => 'ckeditor5'])
->toString(),
]
) :
$this->t('Additional details are available in your logs.');
$this->t('Additional details are available in the site logs.');
$messages[MessengerInterface::TYPE_WARNING][] = new FormattableMarkup('@beginning @added_elements_begin @fundamental_tags @added_elements_tags @added_elements_attributes @end',
[
Loading