|
|
|
@ -53,8 +53,8 @@ class HtmlEditor extends Component
|
|
|
|
|
return [
|
|
|
|
|
'@plain-toolbar' => '.editor-toolbar',
|
|
|
|
|
'@plain-body' => 'textarea',
|
|
|
|
|
'@html-editor' => '.mce-tinymce',
|
|
|
|
|
'@html-toolbar' => '.mce-tinymce .mce-toolbar',
|
|
|
|
|
'@html-editor' => '.tox-tinymce',
|
|
|
|
|
'@html-toolbar' => '.tox-tinymce .tox-editor-header',
|
|
|
|
|
'@html-body' => 'iframe',
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
@ -87,7 +87,7 @@ class HtmlEditor extends Component
|
|
|
|
|
$browser->waitFor('@html-body');
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
$browser->click('@html-toolbar .mce-i-plaintext');
|
|
|
|
|
$browser->click('@html-toolbar .tox-toolbar__primary .tox-toolbar__group:first-child button');
|
|
|
|
|
if ($accept_warning) {
|
|
|
|
|
$browser->waitForDialog()->acceptDialog();
|
|
|
|
|
}
|
|
|
|
|