function BcEditor::getJSSettings
Returns JavaScript settings to be attached.
Most text editors use JavaScript to provide a WYSIWYG or toolbar on the client-side interface. This method can be used to convert internal settings of the text editor into JavaScript variables that will be accessible when the text editor is loaded.
Parameters
\Drupal\editor\Entity\Editor $editor: A configured text editor object.
Return value
array An array of settings that will be added to the page for use by this text editor's JavaScript integration.
Overrides EditorPluginInterface::getJSSettings
File
-
core/
modules/ editor/ tests/ src/ Unit/ EditorBaseTest.php, line 120
Class
Namespace
Drupal\Tests\editor\UnitCode
public function getJSSettings(Editor $editor) {
return [];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.