dungphanxuan/yii2-lepture-editor
最新稳定版本:0.1
Composer 安装命令:
composer require dungphanxuan/yii2-lepture-editor
包简介
Editor is not a WYSIWYG editor, it is a plain text markdown editor. Thanks for the great project codemirror, without which editor can never be created.
关键字:
README 文档
README
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist dungphanxuan/yii2-lepture-editor "*"
or add
"dungphanxuan/yii2-lepture-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\leptureeditor\LeptureEditorWidget::widget([ 'name' => 'content', 'options'=>[// html attributes 'id'=>'content' ], 'leptureOptions' => [ 'toolbar' => false ] ]);; ?>
or use with a model:
<?php echo dungphanxuan\leptureeditor\LeptureEditorWidget::widget([ 'model' => $model, 'attribute' => 'content', 'options'=>[// html attributes 'id'=>'content' ], 'leptureOptions' => [ 'toolbar' => false ] ]);; ?>
For full details on usage, see the documentation.
License
MIT. Copyright (c) 2013 - 2014 by Hsiaoming Yang. Extends and develope by dungphanxuan
统计信息
- 总下载量: 1.97k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-06-29