Commit e973af0e authored by Ilya Kirillov's avatar Ilya Kirillov

Added function for moving cursor to NearestPos.

parent d5a75d71
...@@ -271,4 +271,10 @@ CDocumentContentBase.prototype.GotoFootnoteRef = function(isNext, isCurrent) ...@@ -271,4 +271,10 @@ CDocumentContentBase.prototype.GotoFootnoteRef = function(isNext, isCurrent)
} }
return false; return false;
}; };
\ No newline at end of file CDocumentContentBase.prototype.MoveCursorToNearestPos = function(oNearestPos)
{
var oPara = oNearestPos.Paragraph;
oPara.Set_ContentPos(oNearestPos.ContentPos, true, -1, -1);
oPara.Document_SetThisElementCurrent(true);
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment