PATH:
home
/
lab2454c
/
vaultchip.com
/
vendor
/
botble
/
platform
/
base
/
src
/
Supports
<?php namespace Botble\Base\Supports; use Assets; use BaseHelper; use Illuminate\Support\Arr; use Throwable; class Editor { public function __construct() { add_action(BASE_ACTION_ENQUEUE_SCRIPTS, [$this, 'registerAssets'], 12); } public function registerAssets() { Assets::addScriptsDirectly( config('core.base.general.editor.' . BaseHelper::getRichEditor() . '.js') ) ->addScriptsDirectly('vendor/core/core/base/js/editor.js'); } /** * @param string $name * @param null $value * @param bool $withShortcode * @param array $attributes * @return string * @throws Throwable */ public function render($name, $value = null, $withShortcode = false, array $attributes = []) { $attributes['class'] = Arr::get($attributes, 'class', '') . ' editor-' . BaseHelper::getRichEditor(); $attributes['id'] = Arr::has($attributes, 'id') ? $attributes['id'] : $name; $attributes['with-short-code'] = $withShortcode; $attributes['rows'] = Arr::get($attributes, 'rows', 4); return view('core/base::forms.partials.editor', compact('name', 'value', 'attributes')) ->render(); } }
[-] MembershipAuthorization.php
[edit]
[-] SortItemsWithChildrenHelper.php
[edit]
[-] EmailAbstract.php
[edit]
[-] Filter.php
[edit]
[-] Language.php
[edit]
[-] DashboardMenu.php
[edit]
[-] ActionHookEvent.php
[edit]
[-] PclZip.php
[edit]
[-] BaseSeeder.php
[edit]
[-] Action.php
[edit]
[-] MacroableModels.php
[edit]
[+]
..
[-] CustomResourceRegistrar.php
[edit]
[-] Assets.php
[edit]
[-] MetaBox.php
[edit]
[-] Avatar.php
[edit]
[-] Enum.php
[edit]
[-] BreadcrumbsGenerator.php
[edit]
[-] PageTitle.php
[edit]
[-] BreadcrumbsManager.php
[edit]
[-] Editor.php
[edit]
[-] Core.php
[edit]
[-] MountManager.php
[edit]
[-] EmailHandler.php
[edit]
[-] RepositoryHelper.php
[edit]
[-] Gravatar.php
[edit]
[-] SystemManagement.php
[edit]
[-] Helper.php
[edit]