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
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

havran - October 13, 2007 - 19:51

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

csiknor - October 16, 2007 - 17:59
Status:active» closed

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

divamys - March 21, 2008 - 14:50
Status:closed» active

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

divamys - March 21, 2008 - 15:15
Version:5.x-3.x-dev» 6.x-1.0-beta1

... I forgot to chage the version ....

#5

havran - March 21, 2008 - 15:42

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

divamys - March 22, 2008 - 22:32
Status:active» closed

Thank you very much! ...my fault as I have not fully read documentation on texy

 
 

Drupal is a registered trademark of Dries Buytaert.