RichText icon indicating copy to clipboard operation
RichText copied to clipboard

Clicking on links

Open iantearle opened this issue 11 years ago • 1 comments

Hi,

Is it possible to open URL's?

iantearle avatar Sep 25 '13 16:09 iantearle

Not the programmer, just a user:

Yup:

                            var body = app.rtext.createRichTextView({
                                    top:0,
                                    left: 10,
                                    backgroundColor: 'transparent',
                                    width : 300,
                                    height : Titanium.UI.SIZE,
                                    html : item.body,
                                    font : assets.feedView.bodyFont,
                            });
                            body.addEventListener('click', function(e) {
                                    debug('Click Data:' + JSON.stringify(e));
                                    Ti.Platform.openURL(e.url);
                            });

petethered avatar Sep 25 '13 19:09 petethered