function CKEditor5TestBase::addNewTextFormat

Same name and namespace in other branches
  1. 11.x core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5TestBase.php \Drupal\Tests\ckeditor5\FunctionalJavascript\CKEditor5TestBase::addNewTextFormat()

Add and save a new text format using CKEditor 5.

File

core/modules/ckeditor5/tests/src/FunctionalJavascript/CKEditor5TestBase.php, line 49

Class

CKEditor5TestBase
Base class for testing CKEditor 5.

Namespace

Drupal\Tests\ckeditor5\FunctionalJavascript

Code

public function addNewTextFormat($page, $assert_session, $name = 'ckeditor5') {
  $this->createNewTextFormat($page, $assert_session, $name);
  $this->saveNewTextFormat($page, $assert_session);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.