Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / ckeditor / tests / modules / js / ajax-css.es6.js
1 /**
2  * @file
3  * Contains client-side code for testing CSS delivered to CKEditor via AJAX.
4  */
5
6 (function (Drupal, ckeditor, editorSettings, $) {
7   Drupal.behaviors.ajaxCssForm = {
8
9     attach(context) {
10       // Initialize an inline CKEditor on the #edit-inline element if it
11       // isn't editable already.
12       $(context)
13         .find('#edit-inline')
14         .not('[contenteditable]')
15         .each(function () {
16           ckeditor.attachInlineEditor(this, editorSettings.formats.test_format);
17         });
18     },
19   };
20 }(Drupal, Drupal.editors.ckeditor, drupalSettings.editor, jQuery));