Skip to content

Commit

Permalink
Fix switching between code view and editor
Browse files Browse the repository at this point in the history
  • Loading branch information
webfashionist committed Dec 8, 2017
1 parent 55ea23f commit abe8696
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name" : "RichText",
"version" : "1.0.5",
"version" : "1.0.6",
"source" : "https://github.com/webfashionist/RichText/",
"info" : "https://github.com/webfashionist/RichText/"
}
1 change: 1 addition & 0 deletions src/jquery.richtext.js
Original file line number Diff line number Diff line change
Expand Up @@ -984,6 +984,7 @@

if (window.getSelection && document.createRange) {
var charIndex = 0, range = document.createRange();
if(!range || !containerEl) { window.getSelection().removeAllRanges(); return true; }
range.setStart(containerEl, 0);
range.collapse(true);
var nodeStack = [containerEl], node, foundStart = false, stop = false;
Expand Down
Loading

1 comment on commit abe8696

@Pruus
Copy link

@Pruus Pruus commented on abe8696 Dec 9, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Please sign in to comment.