dungphanxuan/yii2-editor
Composer 安装命令:
composer require dungphanxuan/yii2-editor
包简介
Yii2 Markdow editor base on bootstrap plugin for markdown editing.
关键字:
README 文档
README
Markdown editing meet Bootstrap.
| Version | Compatibility with Bootstrap |
|---|---|
| Bootstrap Markdown v2.x | only compatible with Bootstrap 3.x |
| Bootstrap Markdown v1.x | only compatible with Bootstrap 2.x |
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist dungphanxuan/yii2-editor "*"
or add
"dungphanxuan/yii2-editor": "dev-master"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
<?php echo dungphanxuan\yii2editor\MarkDownEditorWidget::widget([ 'name' => 'content', 'options'=>[// html attributes 'id'=>'content', 'rows'=>'5', 'placeholder'=>'Leave a comment', 'data-provide'=>'markdown', ], ]);; ?>
or use with a model:
<?php echo dungphanxuan\yii2editor\MarkDownEditorWidget::widget([ 'model' => $model, 'attribute' => 'content', 'options'=>[// html attributes 'id'=>'content', 'rows'=>'5', 'placeholder'=>'Leave a comment', 'data-provide'=>'markdown', ], ]);; ?>
Demo and documentation on http://toopay.github.io/bootstrap-markdown/
LICENSE
Copyright 2013-2014 Taufan Aditya
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
统计信息
- 总下载量: 59
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-04-22