142b4eea0f4d5738260422f03bb7eb18fd96a39c
[yaffs-website] / web / core / modules / ckeditor / tests / modules / js / ajax-css.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
8   'use strict';
9
10   Drupal.behaviors.ajaxCssForm = {
11
12     attach: function (context) {
13       // Initialize an inline CKEditor on the #edit-inline element if it
14       // isn't editable already.
15       $(context)
16         .find('#edit-inline')
17         .not('[contenteditable]')
18         .each(function () {
19           ckeditor.attachInlineEditor(this, editorSettings.formats.test_format);
20         });
21     }
22   };
23
24 })(Drupal, Drupal.editors.ckeditor, drupalSettings.editor, jQuery);