You can install mywidearea using bower.
bower install mywidearea
Then insert CSS styles
//Font Awesome http://fontawesome.io/ <link href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet"> <link href="mywidearea.css" rel="stylesheet" media="screen">
and the script at the end of the body
<script src="mywidearea.js"></script>
Add data-mywidearea="true"
to textareas which you want activate.
Name | Type | Default value | Description |
---|---|---|---|
scheme | string | light | Changes default colour scheme. Possible values are light and dark |
iconActivate | string | <i class="fa fa-arrows-alt"></i> |
Activate icon |
iconClose | string | <i class="fa fa-times"></i> |
Close icon |
iconContrast | string | <i class="fa fa-adjust"></i> |
Contrast icon |
In default MyWidearea uses Font Awesome. To use Glypicons add these settings.