I am trying bootstrap-wysihtml5-rails
, I am using twitter bootstrap 2
but when I get this result as in the image, and the error:
Discontiguous selection is not supported.
I tried to window['rangy'].initialized = false;
like this:
<script type="text/javascript">
$(document).ready(function(){
window['rangy'].initialized = false;
$('.wysihtml5').each(function(i, elem) {
$(elem).wysihtml5();
});
})
</script>
But I still get the same error, I could live with it, but it seems that it breaks the buttons of the editor as in the image, any one can help?