Skip to content

Commit 1c6a642

Browse files
committed
Add a note for turbolinks
1 parent 22b6a03 commit 1c6a642

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ gem 'bootstrap-wysihtml5-rails', :require => 'bootstrap-wysihtml5-rails',
3030

3131
and run bundle install.
3232

33-
This gem doesn't include Bootstrap. You can get Bootstrap here: https://github.com/anjlab/bootstrap-rails
33+
This gem doesn't include Bootstrap. You can get Bootstrap here: https://github.com/anjlab/bootstrap-rails
3434

3535
## Configuration
3636

@@ -63,7 +63,7 @@ Just call wysihtml5() with any selector.
6363

6464
```html
6565
<textarea id="some-textarea" class='wysihtml5' placeholder="Enter text ..."></textarea>
66-
66+
6767
<script type="text/javascript">
6868
$('.wysihtml5').each(function(i, elem) {
6969
$(elem).wysihtml5();
@@ -74,6 +74,14 @@ Just call wysihtml5() with any selector.
7474

7575
A live example: http://jsfiddle.net/5UUrg/
7676

77+
## If using Turbolinks
78+
79+
```
80+
$(document).on('page:load', function(){
81+
window['rangy'].initialized = false
82+
})
83+
```
84+
7785
## License
7886
Copyright (c) 2011 Gonzalo Rodríguez-Baltanás Díaz
7987

0 commit comments

Comments
 (0)