mirror of
https://github.com/flynx/pWiki.git
synced 2025-10-30 02:20:08 +00:00
...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
a6a4882fb7
commit
a65266566a
@ -191,14 +191,12 @@ var getMarkdownOffset = function(markdown, text, i){
|
|||||||
return map[i] }
|
return map[i] }
|
||||||
//*/
|
//*/
|
||||||
|
|
||||||
/* XXX this is not needed...
|
|
||||||
var getText = function(elem, res=[]){
|
var getText = function(elem, res=[]){
|
||||||
for(var n of elem.childNodes){
|
for(var n of elem.childNodes){
|
||||||
n.nodeType == n.TEXT_NODE ?
|
n.nodeType == n.TEXT_NODE ?
|
||||||
res.push(n.textContent)
|
res.push(n.textContent)
|
||||||
: getText(n, res) }
|
: getText(n, res) }
|
||||||
return res }
|
return res }
|
||||||
//*/
|
|
||||||
|
|
||||||
var offsetAt = function(A, B, i){
|
var offsetAt = function(A, B, i){
|
||||||
i ??= A.length-1
|
i ??= A.length-1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user