HTML support in image description
wbarek
Joined: 2007-05-02
Posts: 155 |
Posted: Mon, 2009-07-13 12:11 |
I have already asked once, but no one replied. I have a question about html support in album and photo description, are there any plans to implement? Will there be an editor similar to WordPress? I have a real need to place url and massage the text there. In g2 it was working although there was no html editor. I got around it by batch creation of text in Aperture from which I create jpg images for the gallery. It was working well but individual changes afterwords were not easy. So now that I have imported some of my images into g3 there is a problem displaying html as shown in example. Please let me know what the plans are. I am sure there are others with similar requests. Thanks wbarek Quote:
# Title: 2008-05-22 at 09-25-38 |
|
Posts: 7994
It's supported in the latest code. You can enter HTML and it'll get displayed safely. The G2 import code has also been tweaked to convert BBCode (in your snippet) into real HTML.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!
Posts: 155
I just downloaded latest code this morning and it doesn't seems to be working.
Here is my url: http://williambarek.com/g3/index.php/Nature/Animals/2008-04-05_at_10-30-58.jpg
code number: gallery-gallery3-027f6b522132a1ffdbb4ce184bc14525351917db
Posts: 155
Sorry, since it was html code from G2 that has not been converted properly, I edited it and it is fine. However, are you planning to add visivic html editor like that one in WordPress? It would be nice to have when you want to edit or ad new code wher it doesn't exist.
Thanks William
Posts: 2466
For the editor there is a ticket http://sourceforge.net/apps/trac/gallery/ticket/449
Would it give you what you want?
Posts: 155
It is very, very basic, but better that than entering raw html.
Tx William
Posts: 2466
Tiny-MCE is a full flesh JS editor with advanced configuration. In fact this is what WP is using today.
Options string could be exposed as part of the theme and allow full customization by the theme author
Posts: 155
Serge, Then it is great. Is the module available for installation? Or is it a hack that must be placed in theme? I would like to try it.
Tx William
Posts: 2466
Well there is a case/enchantment request. I am working on the theme at the moment.
If nobody will address the issue in the mean time, I may just start by incorporating it into my theme and them make a module.
Posts: 155
Great, I can't really write a code, but will be happy to test it as a user when available. W
Posts: 37
Hate to resurrect an old thread but this appears related. Installed Beta 3 today and tried editing an album description to include an a href="bla bla". It gets htmlentitiezed. Is there any way to have some allowable html or some such in the description field. I would like to link back to another web site page from within the description field but I wind up with < and > and "s in the place of my html page.
Thanks in advance.
Posts: 16504
Install the latest experimental code (not a beta release)
http://codex.gallery2.org/Gallery3:Upgrading
Then you'll also need to get the contributed modules from -contrib on github:
http://github.com/gallery/gallery3-contrib/
And install the purifier module:
http://github.com/gallery/gallery3-contrib/tree/master/modules/purifier/
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 37
Thanks. Any idea whether this capability will be baked into the final Gallery 3 release?
Posts: 16504
No, it's going to be a separate module. It was part of G3 earlier and was yanked out. It was 30% of the code base (just to sanitize HTML) so it's not going to be part of the core. If you need/want HTML then to get it and to get it sanitized you'll need to install the purifier module.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 37
Thank you Nivekiam. I really appreciate what you folks have done to simplify the code base and the permissions system so I can't complain about the lack of Purifier in the core, especially since it's an option.