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
Hi,
first of all congratulation for the great and lighweight module.
I had an issue when pressing spacebar. The editor doesn't print the space but it falls down with the default behaviour of scrolling the whole webpage.
I checked the code and fixed it by adding
event.stopPropagation();
at the end of the event handler on keydown
Following the piece of code
textarea.on('keydown',function(event){if(event.keyCode==9){varTAB_SPACES=4;varhtml=textarea.html();varselection=window.getSelection();varposition=selection.anchorOffset;event.preventDefault();// html = insertTab(html, position);// textarea.html(html);// selection.collapse(textarea[0].firstChild, position + TAB_SPACES); }// THIS IS THE LINE I ADDED <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<event.stopPropagation();});
The text was updated successfully, but these errors were encountered:
Hi,
first of all congratulation for the great and lighweight module.
I had an issue when pressing spacebar. The editor doesn't print the space but it falls down with the default behaviour of scrolling the whole webpage.
I checked the code and fixed it by adding
event.stopPropagation();
at the end of the event handler on keydown
Following the piece of code
The text was updated successfully, but these errors were encountered: