function CKEditor5TestBase::addNewTextFormat
Add and save a new text format using CKEditor 5.
6 calls to CKEditor5TestBase::addNewTextFormat()
- AdminUiTest::testMessagesDoNotAccumulate in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ AdminUiTest.php  - Ensure CKEditor 5 admin UI's real-time validation errors do not accumulate.
 - AdminUiTest::testSettingsOnlyFireAjaxWithCkeditor5 in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ AdminUiTest.php  - Confirm settings only trigger AJAX when select value is CKEditor 5.
 - CKEditor5OffCanvasTest::testOffCanvasStyles in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ CKEditor5OffCanvasTest.php  - Tests if CKEditor is properly styled inside an off-canvas dialog.
 - CKEditor5Test::testExistingContent in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ CKEditor5Test.php  - Tests configuring CKEditor 5 for existing content.
 - CKEditor5Test::testHeadingsPlugin in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ CKEditor5Test.php  - Test headings configuration.
 
File
- 
              core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ CKEditor5TestBase.php, line 49  
Class
- CKEditor5TestBase
 - Base class for testing CKEditor 5.
 
Namespace
Drupal\Tests\ckeditor5\FunctionalJavascriptCode
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.