I Try to show directly videos from Google in TEXY! formatted content, but it doesn't work.
Instead of videos from YouTube is shown only:

</param>  </param><embed src="http://www.youtube.com/v/owK5tHjL0aE" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed>

But on Texy Demo web page it works.

Example code which I used:

/---html
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/owK5tHjL0aE"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/owK5tHjL0aE" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>
\---

Comments

archetwist’s picture

Category: bug » support

I think it's because Texy restricts the use of HTML tags to safe ones ($safeTags variable inside the html-tag.php file). So it's not a matter of the Texy! module but Texy! itself (the core).

havran’s picture

Quick solution: in texy instalation find file texy-constants.php and edit line with

define('TEXY_BLOCK_ELEMENTS',  serialize(array_flip(array('address', 'blockquote', 'caption', 'col', 'colgroup', 'dd', 'div', 'dl', 'dt', 'fieldset', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'iframe', 'legend', 'li', 'object', 'ol', 'p', 'param', 'pre', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'ul'))) );

In this file missing embed (last item in next code)

define('TEXY_BLOCK_ELEMENTS',  serialize(array_flip(array('address', 'blockquote', 'caption', 'col', 'colgroup', 'dd', 'div', 'dl', 'dt', 'fieldset', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'iframe', 'legend', 'li', 'object', 'ol', 'p', 'param', 'pre', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'ul', 'embed'))) );

There is still text - you can delete from your code...

anantagati’s picture

Title: Videos from YouTube are not shown » Tags for disable Texy! don't work properly
Category: support » bug

http://texy.info/en/syntax - in Texy! syntax is said that tags '/---html' and '\---' disable Texy, so why then change something in source files in Texy?

As I see it is bug in texy.module, because when is same code used for Texy! outside Drupal it works nice and code is shown without any changes.

havran’s picture

I have tried YouTube code in http://texy.info/cs/try (here http://texy.info/cs/try/1tnfp - i think here is Texy! 2) and i get same result... I have asking Texy! author on forum.texy.info on this question.

havran’s picture

Ok, here is some answers:

Some html tags (embed) are not safe for Texy! There is possibility set some Texy! variables:

$texy->allowedTags = FALSE;

or

$texy->htmlModule->trustMode(FALSE);

and now Texy! get embed as allowed tag. There is more descriptive documentation for Texy! API but unfortunately only in Czech language. http://texy.info/cs/api-texy1 (for Texy! v 1.x now only).

havran’s picture

Category: bug » feature

Texy author (DGX) give me this explanation (my bad english translation, sorry :-)):

Tag for disabling Texy /---html only disabling Texy syntax, not Texy processing HTML code... Texy aim is produce valid output. Tag 'embed' is realy does not exist in any HTML specification. For this reason Texy process this tag...

Solutions:

* version 1.1 - use code modification as you suggested
* in Texy 1.2 - is possible integrate tag 'embed' through code TexyHtml::$valid['embed'] = TRUE;
* in Texy 2 is there switch Texy::$strictDTD = FALSE;

Dgx

For this I think - feature request - is better for this issue...

anantagati’s picture

Thank you for explanation.

archetwist’s picture

Status: Active » Closed (fixed)
vrbat’s picture

Version: 5.x-1.3 » 6.x-1.3
Assigned: Unassigned » vrbat
Category: feature » support
Status: Closed (fixed) » Active

I´m beginner and I´ve upgraded drupal fom 4 to 6 and installed Texy module 6.x-1.3.
I have problem that Texy syntax is workink just fine, but it ignore all html syntax - also <br>... - regardless if it is in text or betveen /---html \---
I have some content writen in texy combined with html and now it doesn´t show properly.
In admin/settings/texy I have tried to set up Allowed tags, but with no success.
I´ve also tried to install texy v2.1 (I replaced content of texy.compact.5.php with new texy.min.php) with no change in behave.
Any ideas, where I can have problem?

havran’s picture

Sorry there is missing point in field Allowed tags help - tags must be without < > character. Or you can try allow <all> tags.

vrbat’s picture

Status: Active » Closed (fixed)

Thank you for help - setting tags without <> helped very much. (I also found out, that it is necessary to clean cache after every change in texy settings - content processed by texy is stored somewhere in drupal and does not change till cache is cleaned/ cron run.. :-)