https://bugzilla.wikimedia.org/show_bug.cgi?id=69474
--- Comment #5 from Bartosz DziewoĆski <[email protected]> --- I played with it and the following sort of works for all reference node types. There must be a better way to do it, but I can't find one. (It also doesn't update the tooltip after reference contents are changed, probably because that is done deferred or something.) ve.ce.MWReferenceNode.static.getDescription = function ( model ) { var refModel = ve.dm.MWReferenceModel.static.newFromReferenceNode( model ); var surface = ve.init.target.createSurface( refModel.getDocument() ); var text = $( surface.getView().$element ).text(); surface.destroy(); return text; }; -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
