You are here

public function CKEditor::getAttachments in Quick Edit 7

Implements QuickEditInPlaceEditorInterface::getAttachments().

Overrides QuickEditInPlaceEditorInterface::getAttachments

See also

Drupal 8's \Drupal\editor\Plugin\quickedit\editor\Editor::getAttachments().

File

InPlaceEditors/CKEditor.php, line 105

Class

CKEditor
Defines the CKEditor in-place editor.

Code

public function getAttachments() {
  return array(
    'library' => array(
      array(
        'quickedit',
        'quickedit.inPlaceEditor.ckeditor',
      ),
    ),
    'js' => array(
      array(
        'type' => 'setting',
        'data' => array(
          'quickedit' => array(
            'ckeditor' => array(
              'basePath' => ckeditor_library_path('relative') . '/ckeditor/',
            ),
          ),
        ),
      ),
    ),
  );
}