Can HTML taqs be included in the Title parameter?

31 views
Skip to first unread message

RDK45

unread,
Oct 19, 2013, 12:55:23 PM10/19/13
to cer...@googlegroups.com
Hi,  I'm new to Cerabox, but have previously used Milkbox so I'm somewhat familiar with the concept. 
 
Will Cerabox process HTML tags (ie <br/>, <center>, etc) in the title parameter?
 
In the default mode it appears to treat all tags as just part of the title.
 
If not,  is there a Lightbox-like plugin which will recognize HTML tags?....RDK

magdale...@googlemail.com

unread,
May 9, 2014, 5:51:47 AM5/9/14
to cer...@googlegroups.com
Hey there,

did you find a solution? I have the same problem...

Henning Bopp

unread,
Nov 16, 2014, 11:09:24 AM11/16/14
to cer...@googlegroups.com
Hi RDK45,

I think it's not meant to be like that, but the hack to use is simple (I just came across this post and hope that I did not change more than that):

Uncompressed File; Line 946:
- titleElement.setStyle('display','block').set('text', text);
+ titleElement.setStyle('display','block').set(text.contains('</') ? 'html' : 'text', text);

That part simply checks it there is any closed HTML-Tag (so it will not work with <br> or <br />!!!) and sets the setter to "html" if so. If using the minimized version (1.3.8 for sure) than it is line 65, col 449 - the chars "text" have to be substituted with the red marked part above.

rgds



Am Samstag, 19. Oktober 2013 18:55:23 UTC+2 schrieb RDK45:
Reply all
Reply to author
Forward
0 new messages