Closed (fixed)
Project:
Texy!
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
28 Mar 2007 at 13:40 UTC
Updated:
14 Jun 2010 at 09:53 UTC
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
Comment #1
archetwist commentedI think it's because Texy restricts the use of HTML tags to ones (
$safeTagsvariable inside thehtml-tag.phpfile). So it's not a matter of the Texy! module but Texy! itself (the core).Comment #2
havran commentedQuick solution: in texy instalation find file texy-constants.php and edit line with
In this file missing embed (last item in next code)
There is still text - you can delete from your code...
Comment #3
anantagati commentedhttp://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.
Comment #4
havran commentedI 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.
Comment #5
havran commentedOk, 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).
Comment #6
havran commentedTexy author (DGX) give me this explanation (my bad english translation, sorry :-)):
For this I think - feature request - is better for this issue...
Comment #7
anantagati commentedThank you for explanation.
Comment #8
archetwist commentedComment #9
vrbat commentedI´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?
Comment #10
havran commentedSorry there is missing point in field Allowed tags help - tags must be without < > character. Or you can try allow <all> tags.
Comment #11
vrbat commentedThank 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.. :-)