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
# Description: The wildlife pictures from Dragon Hills and Isla Rabida visit on Galapagos Islands.

Printing and Price Information

If you like to read more about this photo location and the album, please:
[b][=#0000ff][url=http://williambarek.com/WP/?p=48]Visit My Blog for thi

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2009-07-13 14:13

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!

 
wbarek

Joined: 2007-05-02
Posts: 155
Posted: Mon, 2009-07-13 14:41

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

 
wbarek

Joined: 2007-05-02
Posts: 155
Posted: Mon, 2009-07-13 15:04

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

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Mon, 2009-07-13 15:18

For the editor there is a ticket http://sourceforge.net/apps/trac/gallery/ticket/449
Would it give you what you want?

 
wbarek

Joined: 2007-05-02
Posts: 155
Posted: Mon, 2009-07-13 15:37

It is very, very basic, but better that than entering raw html.
Tx William

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Mon, 2009-07-13 15:47

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

 
wbarek

Joined: 2007-05-02
Posts: 155
Posted: Mon, 2009-07-13 15:54

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

 
Serge D
Serge D's picture

Joined: 2009-06-11
Posts: 2466
Posted: Mon, 2009-07-13 16:29

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.

 
wbarek

Joined: 2007-05-02
Posts: 155
Posted: Mon, 2009-07-13 16:35

Great, I can't really write a code, but will be happy to test it as a user when available. W

 
fkelly

Joined: 2005-12-05
Posts: 37
Posted: Mon, 2009-12-28 22:16

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 &lt and &gt and &quots in the place of my html page.

Thanks in advance.

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2009-12-28 22:27
Quote:
Installed Beta 3 today

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

 
fkelly

Joined: 2005-12-05
Posts: 37
Posted: Tue, 2009-12-29 18:25

Thanks. Any idea whether this capability will be baked into the final Gallery 3 release?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2009-12-29 18:47

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

 
fkelly

Joined: 2005-12-05
Posts: 37
Posted: Wed, 2010-01-13 20:32

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.