bootstrap-wysiwyg icon indicating copy to clipboard operation
bootstrap-wysiwyg copied to clipboard

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

Open sebawagner opened this issue 4 years ago • 0 comments

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.

sebawagner avatar Apr 27 '20 07:04 sebawagner