You are here

public function UEditor::ueditor_toolbars in UEditor - 百度编辑器 8

Convert toolbars array of string.

1 call to UEditor::ueditor_toolbars()
UEditor::getJSSettings in src/Plugin/Editor/UEditor.php
Returns JavaScript settings to be attached.

File

src/Plugin/Editor/UEditor.php, line 386

Class

UEditor
Defines a UEditor-based text editor for Drupal.

Namespace

Drupal\ueditor\Plugin\Editor

Code

public function ueditor_toolbars($toolbars) {
  if (!empty($toolbars)) {
    return explode(',', $toolbars);
  }
  return '';
}