mirror of
https://github.com/JanGross/quicknotes.git
synced 2025-11-30 23:37:16 +01:00
Jump to end of note content. See issue #7
This commit is contained in:
@@ -987,6 +987,15 @@ View.prototype = {
|
|||||||
note.css({"opacity": "0.1"});
|
note.css({"opacity": "0.1"});
|
||||||
modal.css({"opacity": "0.1"});
|
modal.css({"opacity": "0.1"});
|
||||||
|
|
||||||
|
/* Move caret to end of content */
|
||||||
|
var range = document.createRange();
|
||||||
|
range.selectNodeContents($('#content-editable')[0]);
|
||||||
|
range.collapse(false);
|
||||||
|
|
||||||
|
var sel = window.getSelection();
|
||||||
|
sel.removeAllRanges();
|
||||||
|
sel.addRange(range);
|
||||||
|
|
||||||
/* Animate to center */
|
/* Animate to center */
|
||||||
|
|
||||||
var windowWidth = $(window).width();
|
var windowWidth = $(window).width();
|
||||||
|
|||||||
Reference in New Issue
Block a user