How is "and is an image" being detected? I
tried +...+ (with an
external reference, in 1.0.9, on Linux) and actually *got* a link
and not an embedded image. Are there restrictions on the type of
reference or on the image type?
Embedding currently does not work with external links. It seems to be
possible to add quite easy, I am tempted to implement it ;-)
Name: Pier-All-lr.180
Author: lr
Time: 2 April 2007, 1:59:20 pm
UUID: 418e9cd7-7a65-4664-96a0-ffdcfc064280
Ancestors: Pier-All-lr.179
Dependencies: Pier-Model-lr.135, Pier-Tests-lr.63, Pier-Seaside-lr.
150, Pier-OmniBrowser-lr.23, Pier-Security-lr.75, Pier-Blog-lr.49
Tries to embed external links marked with + as well, if the url
contains .gif, .jpg, .jpeg, .png an IMG tag will be generated,
otherwise an IFRAME (ugly, but this is what the user requested).
Other cases shoud be added, but that's it for now.
I guess IFRAME is for PDFs
Why not do a HEAD request and using the same code (and semantic) for
embedding internal and external links (MAFileModel).
Philippe
Cheers,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
SmallWiki, Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki