pegli/RichText

Clicking on links

Opened this issue · 1 comments

Hi,

Is it possible to open URL's?

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);
                            });