diff --git a/docs/module.md b/docs/module.md index 231d7a2..f6f1df4 100644 --- a/docs/module.md +++ b/docs/module.md @@ -12,7 +12,7 @@ Module configure ### Example Add to config file: -``` +```php 'modules' => [ 'roxymce' => [ 'class' => 'navatech\roxymce\Module', diff --git a/docs/widget.md b/docs/widget.md index e371c5b..ab6422d 100644 --- a/docs/widget.md +++ b/docs/widget.md @@ -13,17 +13,15 @@ Widget Usage ### Example In your view file, call roxymce widget #### Include ActiveRecord Model -~~~ -[php] +```php echo \navatech\roxymce\widgets\RoxyMceWidget::widget([ 'model' => app\models\Post::findOne(1), 'attribute' => 'content', ]); -~~~ +``` #### Sample HTML without ActiveRecord Model -~~~ -[php] +```php echo \navatech\roxymce\widgets\RoxyMceWidget::widget([ 'name' => 'Post[content]' ]); -~~~ \ No newline at end of file +``` diff --git a/docs/without.md b/docs/without.md index 73c24df..57b4167 100644 --- a/docs/without.md +++ b/docs/without.md @@ -13,8 +13,7 @@ In this case, you can use roxymce without TinyMCE intergrated. Just use with fan ### Example #### With Fancybox -~~~ -[php] +```php $('.fancybox').fancybox(); -~~~ +``` #### With Bootstrap modal -~~~ -[php] +```php -~~~ +```