function MediaTest::assignNameToCkeditorPanelIframe
Assigns a name to the CKEditor context menu iframe.
Note that this iframe doesn't appear until context menu appears.
See also
\Behat\Mink\Session::switchToIFrame()
1 call to MediaTest::assignNameToCkeditorPanelIframe()
- MediaTest::testLinkability in core/
modules/ ckeditor/ tests/ src/ FunctionalJavascript/ MediaTest.php - Tests linkability of the CKEditor widget.
File
-
core/
modules/ ckeditor/ tests/ src/ FunctionalJavascript/ MediaTest.php, line 1507
Class
- MediaTest
- @coversDefaultClass \Drupal\ckeditor\Plugin\CKEditorPlugin\DrupalMedia @group ckeditor @group legacy
Namespace
Drupal\Tests\ckeditor\FunctionalJavascriptCode
protected function assignNameToCkeditorPanelIframe() {
$javascript = <<<JS
(function(){
document.getElementsByClassName('cke_panel_frame')[0].id = 'panel';
})()
JS;
$this->getSession()
->evaluateScript($javascript);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.