@trigger_error('Calling CKEditor::__construct() without the $state argument is deprecated in drupal:8.8.0. The $state argument is required in drupal:9.0.0. See https://www.drupal.org/node/3075102.',E_USER_DEPRECATED);
$state=\Drupal::service('state');
}
$this->state=$state;
}
/**
@@ -94,7 +109,8 @@ public static function create(ContainerInterface $container, array $configuratio
$this->assertIdentical($expected_config,$this->castSafeStrings($this->ckeditor->getJSSettings($editor)),'Generated JS settings are correct for customized configuration.');
@@ -249,6 +251,7 @@ public function testBuildToolbarJSSetting() {
*/
publicfunctiontestBuildContentsCssJSSetting(){
$editor=Editor::load('filtered_html');
$query_string='?0=';
// Default toolbar.
$expected=$this->getDefaultContentsCssConfig();
@@ -256,7 +259,7 @@ public function testBuildContentsCssJSSetting() {
// Enable the editor_test module, which implements hook_ckeditor_css_alter().
$this->assertIdentical($expected,$this->ckeditor->buildContentsCssJSSetting($editor),'"contentsCss" configuration part of JS settings built correctly while a hook_ckeditor_css_alter() implementation exists.');
// Enable LlamaCss plugin, which adds an additional CKEditor stylesheet.
@@ -268,17 +271,17 @@ public function testBuildContentsCssJSSetting() {
$this->assertIdentical($expected,$this->ckeditor->buildContentsCssJSSetting($editor),'"contentsCss" configuration part of JS settings built correctly while a CKEditorPluginInterface implementation exists.');
// Enable the Bartik theme, which specifies a CKEditor stylesheet.
$this->assertIdentical($expected,$this->ckeditor->buildContentsCssJSSetting($editor),'"contentsCss" configuration part of JS settings built correctly while a theme providing a CKEditor stylesheet exists.');
}
@@ -487,10 +490,25 @@ protected function getDefaultToolbarConfig() {
* @deprecationMessage Calling CKEditor::__construct() without the $state argument is deprecated in drupal:8.8.0. The $state argument is required in drupal:9.0.0. See https://www.drupal.org/node/3075102.