incubator-jspwiki-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Janne Jalkanen <Janne.Jalka...@ecyrd.com>
Subject Re: Is there a way to inline html files?
Date Thu, 22 Jan 2009 15:43:45 GMT
> A user has a spreadsheet that they edit and they'd like this to be
> visible from the wiki. Linking to the file works but you have to click
> on the link and it is then displayed, What they would like is that,
> instead seeing the link you see the contents - much like happens  
> with an
> image which is configured in the properties file, i.e. you see the  
> image
> not the link to it.

Ah.  If you've got HTML enabled, you can use an iframe to embed other  
documents.

Otherwise, I think you might want to create an Embed plugin, which  
would embed any attachments using either <iframe> or <object>. Latter  
is recommended for better XHTML compliance.  Functionally they are  
rather same.

The code is fairly trivial; you could just use the Image plugin and  
change <img> to <object> and twiddle with the parameters.

Be aware though that this *is* a fairly massive security hole, so  
don't enable this on a public server. ;-)

/Janne

Mime
View raw message