for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace JeroenNoten\LaravelAdminLte\Components;
class TextEditor extends InputGroupComponent
{
/**
* The Summernote plugin configuration parameters. Array with key => value
* pairs, where the key should be an existing configuration property of
* the plugin.
*
* @var array
*/
public $config;
* Create a new component instance.
* Note this component requires the 'Summernote' plugin.
* TODO: the append/prepend addon slots are not supported.
* @return void
public function __construct(
$name, $label = null, $size = null, $labelClass = null,
$topClass = null, $disableFeedback = null, $config = []
) {
parent::__construct(
$name, $label, $size, $labelClass, $topClass, $disableFeedback
);
$this->config = is_array($config) ? $config : [];
// Setup the default plugin width option.
$this->config['width'] = $this->config['width'] ?? 'inherit';
}
* Get the view / contents that represent the component.
* @return \Illuminate\View\View|string
public function render()
return view('adminlte::components.text-editor');