When using the video filter in my D7 installation the filter will only work in "plaintext" posts. Whenever I change the format to "Filtered HTML" or "Full HTML" the tag is changed by the system from:

[video:http://www.youtube.com/watch?v=z_6npvwKzzM]

to:

">http://www.youtube.com/watch?v=z_6npvwKzzM]

Something is replacing the beginning of the tag [video: to "< thus breaking the video insert. I already tried unchecking the "automatically corect wrong HTML, but the result is still the same.

For the time being I do my video posts with plaintext - so it is not urgent.

Comments

paul_constantine’s picture

Title: Drupal 7 version works only in plain text posts. » Drupal 7 video filter works only in plain text posts.
alpritt’s picture

From the README.txt (my emphasis):

Go to admin/config/content/formats and configure the text format(s) that should be allowed to use this filter. Check the box to enable Video Filter and save. Some simple settings are available if you configure the text format. There you can change the default size and auto play settings.

Make sure that Video Filter is processed before "Convert URLs to links". You can do this by dragging and dropping Video Filter to the top of the processing order list. Do this even if it's allready on top, just to make sure!

If you're using the "Limit allowed HTML tags" filter, make sure to add <object> to the list of allowed tags.

I had this same problem and moving it from the top and back again fixed things. If you are curious click 'show row weights' and see if those two filters are weighted equally.

Same problem?

paul_constantine’s picture

Perfect!

They both had in fact the same weight, changing that solved the problem :-)

Thank you very much.

blackdog’s picture

Category: bug » support
Status: Active » Fixed
kosmik’s picture

I have the same problem and the solution is just right here!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

acoustika’s picture

Status: Closed (fixed) » Active

I had this issue also, and cant fix it the way I want....

Order and things is right, but I have wysiwig and tinymce installed, and have the link button on filtered_html and if a user writes (no button) [video: (and then copy/paste URL)] the pasted link is shown in blue (as a link) in the editor which make it not ahow up as a video...... I can tell that this is what is wrong because if i go in to edit the content and via unlink button in the editor removes the blue(make the video url a non-link) the video shows up....

The convert url and video filter order is right, checked it as you wrote with 'show weights'

And it should be working like this, since users will always copy/paste the url.....

acoustika’s picture

Ahh actually think i figured out what caused this.... I had allowed the <a> tag in the allowed tag list, removing that made it work... kinda new to drupal, didnt realize that the convert links option would do the <a> tag for me without having it in the list... :-)
But still i would think its kinda minor bug? because the video filter should still work even if ppl put the <a> tag in the allowed tag list

blackdog’s picture

Status: Active » Closed (works as designed)

Video Filter can't work if the URL is converted to an <a> tag. But, also news to me that adding the <a> to the list makes it not work. If it comes up again, we might need to add it to the documentation.

gagoo’s picture

Ok,

I had the same issue with CKEditor : It always made the urls as link in the wysiwyg editor immediadtly after typing them.
I found the solution: I use the FastestFox Firefox addon that have an option to automatically make all urls in the page as link. I turned of this feature and my urls are not automatically linked anymore.

So you should verify that no browser addon or browser option automatically links urls.

:)

funana’s picture

Title: Drupal 7 video filter works only in plain text posts. » Drupal 7 video filter works only in plain text posts. (<a> Tag in allowed tags filter causes video to not display)
Status: Closed (works as designed) » Active

I ran into the same problem and changed the filter position to top, then to bottom again, but the video wasn't displayed.
When I deleted the <a> tag from the allowed tags it worked.

Definitely a bug if you ask me, because we will need the a tags.

blackdog’s picture

If you use Limit Allowed HTML tags, have that run BEFORE video filter, I.E. first. That will solve it.

blackdog’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.