Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.

ssiapp/laravel-admin-ext-neditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neditor extension for laravel-admin

这是一个laravel-admin扩展,用来将Neditor集成进laravel-admin的表单中.
基于 Neditor , 参考 laravel-admin-extensions/wangEditor

截图

wx20180904-103609

安装

在composer.json增加

"laravel-admin-ext-neditor": {
    "type": "vcs",
    "url": "[当前git]"
}
composer require ssiapp/laravel-admin-ext-neditor

然后

php artisan vendor:publish  --provider="Encore\NEditor\NEditorServiceProvider"

配置

config/admin.php文件的extensions,加上属于这个扩展的一些配置

    'extensions' => [

        'neditor' => [
        
            // 如果要关掉这个扩展,设置为false
            'enable' => true,
            
            // 编辑器的配置
            'config' => [
                
            ]
        ]
    ]

编辑器的配置可以到Neditor文档找到,比如配置上传图片的地址上传图片

    'config' => [
        'uploadImgServer' => '/upload'
    ]

使用

在form表单中使用它:

$form->editor('content');

License

Licensed under The MIT License (MIT).

About

laravel-admin的neditor扩展

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published