steveathon / bootstrap-wysiwyg

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

Exception in Google Chrome's mobile version #130

Open Kaorinite opened 6 years ago

Kaorinite commented 6 years ago

Hello! I have a problem with bootstrap-wysiwyg in my mobile Chrome (ver.55) browser on Android 4.4.2. Is there a way to fix this quickly? Here are the screenshots with the code: wysiwyg1 wysiwyg2

Many thanks in advance!

spreadred commented 6 years ago

@Kaorinite getCurrentRange() is defined in the source code. Are you sure you don't have a syntax error somewhere before that function is defined?

micheleb commented 4 years ago

don't know if this will help anyone, but the problem is that there's a missing .bind(this) call on this line, so that the touchend handler can refer to this inside of it (whereas without the bind, it's referring to the Window object)