Cannot specifiel class with modifiers
csiknor - October 13, 2007 - 16:09
| Project: | Texy! |
| Version: | 6.x-1.0-beta1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
The following code works fine on Texy! Try page, but fails using the Drupal module. I've enabled all classes in the settings using value.
[* /image/view/168/normal .[thumbnail] *]
Some text .[myclass]

#1
Have you disabled other filters in Texy filter? I have no problem in my site with this... i get:
<div><img src="http://www.fem.uniag.sk/img/foto/16_thumb.jpg" class="thumbnail" alt=""></div><p class="myclass">Some text</p>
#2
Well, I don't know what to say. Right now it's working but when I've issued the bug I definitely faced with the problem. Actually I've commented out the code where the allowed classes and styles are passed to Texy! because Texy!'s default value for this paramter is to enable all classes and styles. After that my page was rendered well. But now after removed the comment it's still working. No idea.
My fault, sorry.
Thanks,
Norbert
#3
Hi,
I have the same problem
.{color:red} works just fine
.{class:even} does not get into html output
I checked $texy->allowedClasses and it contains all allowed classes. Even when I set it to TRUE it had no effect. I also tried to replace texy.compact.5.php with file downloaded from texy site. Nothing helped...
Moreover I think that this is a matter of texy lib as when I print out the result of $html = $texy->process($text); I get output without classes.
Thanks in advance for any input.
#4
... I forgot to chage the version ....
#5
Do you want this output?
<p style="color:red">red style</p>
<p class="even">even class</p>
In Texy syntax:
red style .{color:red;}
even class .[even]
Here is real example http://texy.info/en/try/ema5d.
#6
Thank you very much! ...my fault as I have not fully read documentation on texy