Skip to content

Commit

Permalink
Merge pull request #26 from nick-denry/docfix
Browse files Browse the repository at this point in the history
Re-enable php syntax highlight at docs
  • Loading branch information
Le Phuong authored Mar 10, 2018
2 parents cf730c6 + fd1f219 commit b92b7d8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion docs/module.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Module configure

### Example
Add to config file:
```
```php
'modules' => [
'roxymce' => [
'class' => 'navatech\roxymce\Module',
Expand Down
10 changes: 4 additions & 6 deletions docs/widget.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]'
]);
~~~
```
10 changes: 4 additions & 6 deletions docs/without.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ In this case, you can use roxymce without TinyMCE intergrated. Just use with fan
### Example

#### With Fancybox
~~~
[php]
```php
<?php
use navatech\roxymce\assets\BootstrapTreeviewAsset;
use navatech\roxymce\assets\FancyBoxAsset;
Expand All @@ -37,11 +36,10 @@ BootstrapTreeviewAsset::register($this);
<script>
$('.fancybox').fancybox();
</script>
~~~
```

#### With Bootstrap modal
~~~
[php]
```php
<?php
use navatech\roxymce\assets\BootstrapTreeviewAsset;
use navatech\roxymce\assets\FancyBoxAsset;
Expand Down Expand Up @@ -74,4 +72,4 @@ BootstrapTreeviewAsset::register($this);
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
~~~
```

0 comments on commit b92b7d8

Please sign in to comment.