steveathon / bootstrap-wysiwyg

Tiny bootstrap-compatible WYSIWYG rich text editor
MIT License
661 stars 1.71k forks source link

touchend is never executed cause (!this.getCurrentRange) is never true #152

Open sebawagner opened 4 years ago

sebawagner commented 4 years ago

There is as fix in:https://github.com/steveathon/bootstrap-wysiwyg/commit/aa73cd30cdde28a7e4c9416b60009e9e46bf0588#diff-5533b3a46c8d44c5a0d1f3198ee1cd9a

But I don't think this fix works. if(!this.getCurrentRange) is always false. Its never true. Cause "this" in this context refers to $ ( window ) and as such there will never be a method this.getCurrentRange.

I don't see quite what the code is supposed to achieve afterwards ? Even without invoking the method I don't see any change in bahviour.