You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems this plugin cannot modify normal html text.
When you select words in the following example, you get an error, Uncaught TypeError: Cannot read property 'substr' of undefined.
<html><head><metacharset="UTF-8"><scripttype="text/javascript" src="http://code.jquery.com/jquery-1.10.0.min.js"></script><scripttype="text/javascript" src="src/jquery.selection.js"></script></head><body><divclass="content"><pid="laten-text">Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.</p></div><script>$(document).ready(function(){$('.content p').click(function(){$(this).selection('insert',{text: '<strong>',mode: 'before'}).selection('insert',{text: '</strong>',mode: 'after'});});});</script></body></html>
The text was updated successfully, but these errors were encountered:
Hi, looks like a nice plugin.
It seems this plugin cannot modify normal html text.
When you select words in the following example, you get an error,
Uncaught TypeError: Cannot read property 'substr' of undefined
.The text was updated successfully, but these errors were encountered: