dev-master
9999999-devYii2 Markdow editor base on bootstrap plugin for markdown editing.
MIT
The Requires
by dungphanxuan
jquery javascript html text editor wysiwyg rte rich editor rich text editor markdown-editor bootstrap-markdown
Yii2 Markdow editor base on bootstrap plugin for markdown editing.
Markdown editing meet Bootstrap., (*1)
Version | Compatibility with Bootstrap |
---|---|
Bootstrap Markdown v2.x | only compatible with Bootstrap 3.x |
Bootstrap Markdown v1.x | only compatible with Bootstrap 2.x |
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist dungphanxuan/yii2-editor "*"
or add, (*4)
"dungphanxuan/yii2-editor": "dev-master"
to the require section of your composer.json
file., (*5)
Once the extension is installed, simply use it in your code by :, (*6)
<?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:, (*7)
<?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/, (*8)
Copyright 2013-2014 Taufan Aditya, (*9)
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, (*10)
http://www.apache.org/licenses/LICENSE-2.0, (*11)
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., (*12)
Yii2 Markdow editor base on bootstrap plugin for markdown editing.
MIT
jquery javascript html text editor wysiwyg rte rich editor rich text editor markdown-editor bootstrap-markdown