mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-19 22:23:33 +01:00
documented lineAndColumnFromChar
This commit is contained in:
parent
5833cb1037
commit
2ccc70daf6
1 changed files with 3 additions and 0 deletions
|
@ -2203,6 +2203,9 @@ function Ace2Inner(){
|
|||
|
||||
}
|
||||
|
||||
/*
|
||||
Converts the position of a char (index in String) into a [row, col] tuple
|
||||
*/
|
||||
function lineAndColumnFromChar(x)
|
||||
{
|
||||
var lineEntry = rep.lines.atOffset(x);
|
||||
|
|
Loading…
Reference in a new issue