private function EmbeddedMediaTest::getEditors in Lightning Media 8.3
Returns all CKEditor instance IDs.
Return value
string[] The CKEditor instance IDs.
1 call to EmbeddedMediaTest::getEditors()
- EmbeddedMediaTest::getDefaultEditor in tests/
src/ FunctionalJavascript/ EmbeddedMediaTest.php - Returns the first available CKEditor instance ID.
File
- tests/
src/ FunctionalJavascript/ EmbeddedMediaTest.php, line 194
Class
- EmbeddedMediaTest
- Tests embedding media items in CKEditor using the media browser.
Namespace
Drupal\Tests\lightning_media\FunctionalJavascriptCode
private function getEditors() {
$this
->assertJsCondition("typeof CKEDITOR.instances === 'object'");
$keys = $this
->getSession()
->evaluateScript('Object.keys(CKEDITOR.instances).join(",")');
return explode(',', $keys);
}