Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/super-eggs/tinymce
laravel-admin-tinymce 超级好用的编辑器
https://github.com/super-eggs/tinymce
Last synced: about 1 month ago
JSON representation
laravel-admin-tinymce 超级好用的编辑器
- Host: GitHub
- URL: https://github.com/super-eggs/tinymce
- Owner: super-eggs
- License: mit
- Created: 2020-03-11T14:49:54.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-13T14:12:57.000Z (over 4 years ago)
- Last Synced: 2024-09-22T21:23:54.700Z (3 months ago)
- Language: JavaScript
- Size: 1.3 MB
- Stars: 13
- Watchers: 1
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-laravel-admin - tinymce - 一款易用、且功能强大的所见即所得的富文本编辑器 (扩展包 / 字段类扩展包)
README
TinyMCE extension for laravel-admin
======这是一个`laravel-admin`扩展,用来将`tinyMCE`集成进`laravel-admin`的表单中
## 截图
![截图演示](https://laravel-admin.org/storage/2020/03/12/9JrYt49kWVDtwlYVwbCEOjv6MWHI7hmWhkjW9zdc.png)
## 安装
首先
```composer require super-eggs/laravel-admin-tinymce```
然后
```php artisan vendor:publish --tag=laravel-admin-tinymce```
## 配置
```
'tinymce' => [
// Set to false if you want to disable this extension
'enable' => true,
// Editor configuration
'config' => [
'resize'=> false,
'plugins'=> 'advlist autolink link image lists preview code help fullscreen table autoresize ', // 插件
'toolbar'=> 'undo redo | styleselect | fontsizeselect bold italic | link image blockquote removeformat | indent outdent bullist numlist code', // 配置工具栏
'images_upload_url'=> '/api/v1/images', //图片上传接口 返回格式:{ location : "/demo/image/1.jpg" }
]
]
```
更多配置: http://tinymce.ax-z.cn/ 文档写的非常棒,清晰明了!! (感谢 莫若卿 写的中文文档.)## 使用
在`form`中使用
```
$form->tinymce('content');
```## 上传图片
```php
$filetowrite));
```
> 引用自 http://tinymce.ax-z.cn/advanced/php-upload-handler.php## License
Licensed under The [MIT License (MIT).](https://github.com/super-eggs/tinymce/blob/master/LICENSE)