public function renderToolbar()
    {
        if ($this->toolbarOptions === self::TOOLBAR_BASIC) {
            return [
                [
                    'bold',
                    'italic',
                    'underline',
                    'strike',
                ],
                [
                    ['list' => 'ordered'],
                    ['list' => 'bullet'],
                ],
                [
                    ['align' => []],
                ],
                [
                    'link',
                ],
            ];
        }

        if ($this->toolbarOptions === self::TOOLBAR_FULL) {
            return [
                [
                    ['font' => []],
                    [
                        'size' => [
                            'small',
                            false,
                            'large',
                            'huge',
                        ],
                    ],
                ],
                [
                    'bold',
                    'italic',
                    'underline',
                    'strike',
                ],
                [
                    ['color' => []],
                    ['background' => []],
                ],
                [
                    ['script' => 'sub'],
                    ['script' => 'super'],
                ],
                [
                    ['header' => 1],
                    ['header' => 2],
                    'blockquote',
                    'code-block',
                ],
                [
                    ['list' => 'ordered'],
                    ['list' => 'bullet'],
                    ['indent' => '-1'],
                    ['indent' => '+1'],
                ],
                [
                    ['direction' => 'rtl'],
                    ['align' => []],
                ],
                [
                    'link',
                    'image',
                    'video',
                ],
                [
                    'clean',
                ],
            ];
        }

        return $this->toolbarOptions;
    }
public function renderToolbar()
    {
        if ($this->toolbarOptions === self::TOOLBAR_BASIC) {
            return [
                [
                    'bold',
                    'italic',
                    'underline',
                    'strike',
                ],
                [
                    ['list' => 'ordered'],
                    ['list' => 'bullet'],
                ],
                [
                    ['align' => []],
                ],
                [
                    'link',
                ],
            ];
        }

        if ($this->toolbarOptions === self::TOOLBAR_FULL) {
            return [
                [
                    ['font' => []],
                    [
                        'size' => [
                            'small',
                            false,
                            'large',
                            'huge',
                        ],
                    ],
                ],
                [
                    'bold',
                    'italic',
                    'underline',
                    'strike',
                ],
                [
                    ['color' => []],
                    ['background' => []],
                ],
                [
                    ['script' => 'sub'],
                    ['script' => 'super'],
                ],
                [
                    ['header' => 1],
                    ['header' => 2],
                    'blockquote',
                    'code-block',
                ],
                [
                    ['list' => 'ordered'],
                    ['list' => 'bullet'],
                    ['indent' => '-1'],
                    ['indent' => '+1'],
                ],
                [
                    ['direction' => 'rtl'],
                    ['align' => []],
                ],
                [
                    'link',
                    'image',
                    'video',
                ],
                [
                    'clean',
                ],
            ];
        }

        return $this->toolbarOptions;
    }
public function renderToolbar ( ) { if ( $ this -> toolbarOptions === self :: TOOLBAR_BASIC ) { return [ [ 'bold' , 'italic' , 'underline' , 'strike' , ] , [ [ 'list' => 'ordered' ] , [ 'list' => 'bullet' ] , ] , [ [ 'align' => [ ] ] , ] , [ 'link' , ] , ] ; } if ( $ this -> toolbarOptions === self :: TOOLBAR_FULL ) { return [ [ [ 'font' => [ ] ] , [ 'size' => [ 'small' , false , 'large' , 'huge' , ] , ] , ] , [ 'bold' , 'italic' , 'underline' , 'strike' , ] , [ [ 'color' => [ ] ] , [ 'background' => [ ] ] , ] , [ [ 'script' => 'sub' ] , [ 'script' => 'super' ] , ] , [ [ 'header' => 1 ] , [ 'header' => 2 ] , 'blockquote' , 'code-block' , ] , [ [ 'list' => 'ordered' ] , [ 'list' => 'bullet' ] , [ 'indent' => '-1' ] , [ 'indent' => '+1' ] , ] , [ [ 'direction' => 'rtl' ] , [ 'align' => [ ] ] , ] , [ 'link' , 'image' , 'video' , ] , [ 'clean' , ] , ] ; } return $ this -> toolbarOptions ; }
Prepares predefined set of buttons.
@return bool|array
Prepares predefined set of buttons .