
| Current Path : /var/www/html/rocksensor/web/modules/contrib/ckeditor/tests/src/Traits/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/rocksensor/web/modules/contrib/ckeditor/tests/src/Traits/CKEditorAdminSortTrait.php |
<?php
namespace Drupal\Tests\ckeditor\Traits;
use Drupal\FunctionalJavascriptTests\SortableTestTrait;
/**
* Provides callback for simulated CKEditor toolbar configuration change.
*/
trait CKEditorAdminSortTrait {
use SortableTestTrait;
/**
* {@inheritdoc}
*/
protected function sortableUpdate($item, $from, $to = NULL) {
$script = <<<JS
(function () {
// Set backbone model after a DOM change.
Drupal.ckeditor.models.Model.set('isDirty', true);
})()
JS;
$options = [
'script' => $script,
'args' => [],
];
$this->getSession()->getDriver()->getWebDriverSession()->execute($options);
}
}