Insert object tag via tinymce Options
imayat12
Posted: Friday, March 14, 2008 11:25:13 AM

Rank: Addict

Joined: 7/19/2006
Posts: 649
Location: Preston, UK
Guys,

I have tried to insert using tinymce and edit html and object tag which renders out flash movie. Tinymce strips out object tags. I know in tinymce.config you can set allowed tags / attributes. Does anyone have code for allowing flash object?

I usually use swfobjects / macro however the code that i am trying to insert is auto generated by sprout

Regards

Ismail

Level 2 certified. If it aint broke dont fix.
PeterD
Posted: Friday, March 14, 2008 12:07:17 PM

Rank: Fanatic

Joined: 7/20/2006
Posts: 488
Location: NL
Ismail,

if I am not mistaken, the object parameter is not xhtml right?
My guess is that if you set tinyMCE (or umbraco) to spit out xhtml, it strips tags that are not xhtml.
Just a hunch though.

Can't you make a new property with mediapicker and then add the objet to the page with xslt?
That's how I do it anyway.

HTH,
PeterD

Working on an events-calendar with recursion. Post requests on my blog!
mortenbock
Posted: Friday, March 14, 2008 1:07:40 PM

Rank: Addict

Joined: 7/19/2006
Posts: 791
Location: Århus, Denmark
How about a simple macro with just a textarea where you can input the <object> code, and just have the macro spit out the text from the text area?

Morten Bock - Level 2 certified - MVP 2008/2009 - My danish blog with a few english posts

drobar
Posted: Friday, March 14, 2008 1:11:01 PM

Rank: Umbracoholic

Joined: 9/8/2006
Posts: 1,698
Location: KY, USA
Exactly. I use something like these examples:
http://en.wikibooks.org/wiki/Umbraco/Samples_and_Articles/XSLT/Embed_FlashPlayer
http://forum.umbraco.org/18583

cheers,
doug.

MVP 2007-2009 - Official Umbraco Trainer for North America - Percipient Studios
imayat12
Posted: Friday, March 14, 2008 2:46:10 PM

Rank: Addict

Joined: 7/19/2006
Posts: 649
Location: Preston, UK
Morten,

Tried that and it went boom! Doug, the actual code for the movie is generated by sprout so would ideally like users to be able to just cut and paste as mentioned earlier for all other flash i have macro which wraps swfobjects and that works nicely for all other flash needs.

Many thanks for the help guys.

PS: Just got my codegarden stuff approved at work yesterday flight booked today. CG08 here i come :w00t:

Ismail

Level 2 certified. If it aint broke dont fix.
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.