第一步:下载百度编辑器到本地:http://ueditor.baidu.com/website/download.html
第二步:将下载文件放到文件public/vendor下(可以重命名名)
第三步:在app\Admin\Extensions 文件下新建文件ueditor.php
<?php
namespace App\Admin\Extensions;
use Encore\Admin\Form\Field;
class Ueditor extends Field
{
protected static $css = [
];
public static $isJs=false;
protected static $js = [
/*ueditor1433文件夹为第二步中自定义的文件夹*/
'vendor/ueditor1433/ueditor.config.js',
'vendor/ueditor1433/ueditor.all.js',
];
protected $view = 'admin.Ueditor';
public function render()
{
$this->script = <<<EOT
UE.delEditor('{$this->id}');
var ue