how does texy interact with other filters, like img_filter or others that create input formats?

zilla - February 23, 2008 - 17:06
Project:Texy!
Version:6.x-1.x-dev
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

hi. this looks brilliant. i'm eager to try it out on my d6 install and create a simple 'user help page' from your own syntax page...but i don't want to present users with one million options, want to kind of trim it down (can simply link to 'for advanced options' visit: (your syntax page))

at any rate, i'm wondering how this interacts with other filters: for example i'm using img_filter which allows users to place images above or below text in drupal 6 or also within text specific locations by using the advanced option and inserting a tag like [img:2] - but what will happen if text sees that? i can't ask users to 'disable texy' all of the time, they just won't get it...

another module is video filter for drupal 6, it adds an input filter that recognizes (for example) youtube and lets a user insert a video by youtube code like [video:as88fhkk] - will text junk it?

ONE idea: could this all be resolved by simply ordering the application of filters such that text is last or first? and if so, should it be last or first? and will it still override the other filters?

#1

havran - February 23, 2008 - 19:40

(First I'm sorry for my bad english.)

ad 1) In filter/tips there is simple set of Texy! syntax - it is good idea link direct this page and page with advanced syntax on end of this page. (Oh, i see it's maybe bit old.)

ad 2) I use Texy! with Inline filter which use similar syntax - without any problem. In filter page there is possibility order filters - I always set Texy! filter last, which is best option for me.

There is possible problems because Texy! filter clean HTML code (using only tags which are allowed in HTML standard - for example in flash is not allowed). You can see this in this issue http://drupal.org/node/131769 (Tags for disable Texy! don't work properly). In previous issue is a good idea expand Texy! settings with $texy->allowedTags (http://drupal.org/node/224925 Support for $texy->allowedTags in texy module). I want include that settings into Texy! filter.

PS: I'm not autor Texy! - only Texy! filter module :).

#2

havran - February 23, 2008 - 19:41
Version:HEAD» 6.x-1.x-dev
Component:Code» User interface

Changing info.

#3

design4effect - July 24, 2009 - 18:14

I run the Texy filter last also to avoid any similar syntax issues.

Texy ignores HTML so once the other filters convert it, Texy passes it through unchanged.

The Texy filter is easy to customize and extend, it comes with a few examples you can use for reference.

I modified it so adding YouTube is as easy and of identical syntax to adding an image.

[* youtube:as2343e3 480x320 .{border:1px solid #666} *]

If anyone is interested I'll post the code for the patch.

The generated code using only the OBJECT tag so it validates, runs on all recent browsers and if you wish... auto starts on page load.

- Kent

 
 

Drupal is a registered trademark of Dries Buytaert.