PATH:
home
/
lab2454c
/
vaultchip.com
/
platform
/
core
/
base
/
src
/
Forms
/
Fields
<?php namespace Botble\Base\Forms\Fields; use Assets; use Illuminate\Support\Arr; use Kris\LaravelFormBuilder\Fields\FormField; class CkEditorField extends FormField { /** * {@inheritDoc} */ protected function getTemplate() { Assets::addScriptsDirectly(config('core.base.general.editor.ckeditor.js')) ->addScriptsDirectly('vendor/core/core/base/js/editor.js'); return 'core/base::forms.fields.ckeditor'; } /** *{@inheritDoc} */ public function render(array $options = [], $showLabel = true, $showField = true, $showError = true) { $options['class'] = Arr::get($options, 'class', '') . 'form-control editor-ckeditor'; $options['id'] = Arr::get($options, 'id', $this->getName()); $options['rows'] = Arr::get($options, 'rows', 4); return parent::render($options, $showLabel, $showField, $showError); } }
[-] EditorField.php
[edit]
[-] DateField.php
[edit]
[-] ColorField.php
[edit]
[-] HtmlField.php
[edit]
[+]
..
[-] MediaImageField.php
[edit]
[-] GoogleFontsField.php
[edit]
[-] CustomSelectField.php
[edit]
[-] CkEditorField.php
[edit]
[-] CustomRadioField.php
[edit]
[-] MultiCheckListField.php
[edit]
[-] TagField.php
[edit]
[-] OnOffField.php
[edit]
[-] RepeaterField.php
[edit]
[-] MediaImagesField.php
[edit]
[-] MediaFileField.php
[edit]
[-] TinyMceField.php
[edit]
[-] AutocompleteField.php
[edit]
[-] TimeField.php
[edit]