How To Allow The EMBED Tag In Pixie

5 views
Skip to first unread message

Nollind Whachell

unread,
May 1, 2009, 12:50:03 PM5/1/09
to Pixie
I was in the process of adding a Google Video to one of my posts when
I noticed that the Pixie TinyMCE editor was stripping the EMBED tag
out of my posts. To get around this, you can do the following.

1) Within the admin/jscript/tiny_mce folder there is a file called
tiny_mce_setup.js.php

2) Within this file are series of valid_elements which define the
rules for TinyMCE (what tags will be permitted).

3) I searched for the "fieldset" rule and then in front of it, I
inserted the following EMBED code rules.

+"embed[quality|type|pluginspage|width|height|src|align|style|
allowFullScreen|allowScriptAccess],"

IMPORTANT: Keep a copy of this file before you edit it! This file is
saved in a specific format. When I tried modifying it with
Dreamweaver, it always corrupted it for some reason and I had to go
back to my backup copy. Finally I opened the file on my Windows
machine using NotePad and added the code above. I however had to
insert a carriage return block beside it (i.e. looks like a square
box) for it to work though. When you open the file, you'll see what I
mean. Just try to replicate the same layout of text. I basically
copied and pasted one of these square carriage return boxes to
replicate the same layout of text.

Scott

unread,
May 8, 2009, 11:09:49 AM5/8/09
to Pixie
Thanks Nollind, it is a great bug fix but as I far as I can remember
the embed tag is now out of the window? at least with XHTML? I will
have to double check that before committing this one to the code base
as I want to keep Pixie XHTML strict (at least for now)

Cheers

Scott

Nollind Whachell

unread,
May 10, 2009, 5:52:25 PM5/10/09
to Pixie
"but as I far as I can remember
the embed tag is now out of the window? at least with XHTML? "

Tell that to YouTube and Google Video, two of the most popular video
sharing sites on the Web who still utilize EMBED tags (Google Video
extensively). :) I mean unless you can come up with an easy way to
convert video code with EMBED tags in it to OBJECT tags so that the
end user doesn't have to figure it out themselves (i.e. parameters,
etc) then I think you need to keep supporting outdated tags.

Scott

unread,
May 11, 2009, 11:03:20 AM5/11/09
to Pixie
Agreed. I have updated the TinyMce ruleset... this will go out in the
next version. It is then down to the user to obey standards if they
wish to and increases support for embed code.

Scott
Reply all
Reply to author
Forward
0 new messages