Trait dosamigos\ckeditor\CKEditorTrait

Implemented bydosamigos\ckeditor\CKEditor, dosamigos\ckeditor\CKEditorInline

CKEditorTrait has common methods for both CKEditor and CKEditorInline widgets.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$clientOptions array The options for the CKEditor 4 JS plugin. dosamigos\ckeditor\CKEditorTrait
$preset string The toolbar preset. dosamigos\ckeditor\CKEditorTrait

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
initOptions() Initializes the widget options. dosamigos\ckeditor\CKEditorTrait

Property Details

$clientOptions public property

The options for the CKEditor 4 JS plugin. Please refer to the CKEditor 4 plugin Web page for possible options.

See also!/guide/dev_installation.

public array $clientOptions = []
$preset public property

The toolbar preset. It can be any of the following:

  • basic: will load the configuration on presets/basic.php
  • full: will load the configuration on presets/full.php
  • standard: will load the configuration on presets/standard.php
  • custom: configuration will be based on $clientOptions.

Defaults to 'standard'. It is important to note that any configuration item of the loaded presets can be overrided by $clientOptions

public string $preset 'standard'

Method Details

initOptions() protected method

Initializes the widget options.

This method sets the default values for various options.

protected void initOptions ( )