>
> I don't know exactly how to get a reference into the formatted post that 
>>> can be later changed by a callback or something.
>>>
>> when we match shortened twister URL and perform "msg = 
>> msgAddHtmlEntity()" we may add some *id* to so called 
>> *templateShortenedTwisterURL* which we put in newHtmlEntityLink() and 
>> then search element with that id from callback function to manage it. it's 
>> not so good but I don't see clearly your need.
>>
> Great idea!
>
it was just one way. I've decided to go another one: 
https://github.com/miguelfreitas/twister-html/commit/3e43fdb5946a10e956b3f5c3610ad17d39517dfd

we use fillElemWithTxt() to apply formatting to elements so now we search 
there for *.link-shortened* elements, disable clicks on them and fetch 
URIs. then we put fetched URIs on all related to them links on document and 
enable clicks.

btw I suppose we may cache shortened URIs to localStorage.

-- 
You received this message because you are subscribed to the Google Groups 
"twister-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to