Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yiichina/yii2-md-editor
Yii2 中使用基于 Markdown 的可见即可得的在线编辑器
https://github.com/yiichina/yii2-md-editor
editor markdown markdown-editor yii2 yii2-extension
Last synced: about 1 month ago
JSON representation
Yii2 中使用基于 Markdown 的可见即可得的在线编辑器
- Host: GitHub
- URL: https://github.com/yiichina/yii2-md-editor
- Owner: yiichina
- Created: 2017-07-15T05:01:05.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-06-26T09:00:04.000Z (over 1 year ago)
- Last Synced: 2024-10-01T14:25:30.009Z (about 2 months ago)
- Topics: editor, markdown, markdown-editor, yii2, yii2-extension
- Language: PHP
- Homepage: http://extension.yiichina.com/md-editor
- Size: 39.1 KB
- Stars: 14
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Yii2 Markdown Editor
===================================安装
----安装这个扩展的首选方法是通过 [composer](http://getcomposer.org/download/)。
可以运行
```
composer require --prefer-dist yiichina/yii2-md-editor "*"
```也可以添加
```
"yiichina/yii2-md-editor": "*"
```到你的 `composer.json` 文件的包含部分。
### 安装数据库
```
yii migrate/up --migrationPath=@vendor/yiichina/yii2-md-editor/migrations
```### 创建上传目录
在web目录创建uploads目录并给写权限:
```
mkdir -p -m 777 web/uploads
```### 增加控制器映射
在config/main.php中加入以下代码:
```
'controllerMap' => [
'attachment' => 'yiichina\mdeditor\controllers\AttachmentController',
],
```文档和 Demo
----------http://extension.yiichina.com/md-editor