Closed GoogleCodeExporter closed 8 years ago
share-extras-read-only/Wiki Rich
Content/source/web/extras/components/wiki/document-parser.js line 113 is
appears to look for a non-URL encoded link.
docRe = new
RegExp("\\/document-details\\/?\\?nodeRef=(\\w+:\\/\\/\\w+\\/[-\\w]+)"),
My links appear to be URL Encoded link this:
<p><a
href="document-details?nodeRef=workspace%3A%2F%2FSpacesStore%2F557b52d8-9034-410
b-9adf-a300b1f643bd" target="embed">This is a document link</a></p>
Original comment by espl...@gmail.com
on 8 Jan 2013 at 5:36
[deleted comment]
Using this regular expresson on line 113 of document-parser.js has the link
recognized by the Wiki Rich Content plugin (the embed with no link target
removes the link).
docRe = new RegExp("document-details\\/?\\?nodeRef=(\\w+%3A%2F%2F\\w+
%2F[-\\w]+)"),
But I think the URL needs to be decoded on line 265 in order for the preview to
work and I haven't figured out how to do that in JavaScript yet.
Original comment by espl...@gmail.com
on 8 Jan 2013 at 5:54
Original comment by will.abson
on 11 Feb 2013 at 12:53
Fixed in trunk on GitHub
Original comment by will.abson
on 12 Mar 2013 at 2:51
Original issue reported on code.google.com by
espl...@gmail.com
on 8 Jan 2013 at 5:35