[TYPO3-RTE] Embed, Object, Param Tags to allow Youtube

Stanislas Rolland typo3 at sjbr.ca
Thu Nov 6 08:43:41 CET 2008


Hi Trent,
> I am trying to allow the embeded youtube.com code into posts, and tried 
> to replicate what was added to allow image tags. The code is wrong as it 
> still converts the the object code to readable code, not html. Am I 
> missing something?
> 
> RTE.default {
>   ## Enable the image button
>   showButtons := addToList(image)
> 
>   ## Tags allowed outside p & div
>   ## Adding img tag to the default list
>   proc.allowTagsOutside := addToList(img)
> 
> ## Added to allow embeded video
>   proc.allowTagsOutside := addToList(object)
>   proc.allowTagsOutside := addToList(param)
>   proc.allowTagsOutside := addToList(embed)
> 
>   ## Do not remove img tags
>   proc.entryHTMLparser_db.tags.img >
> 
> ## Added to allow embeded video
>   proc.entryHTMLparser_db.tags.object >
>   proc.entryHTMLparser_db.tags.embed >
>   proc.entryHTMLparser_db.tags.param >
> }
> RTE.default.FE.showButtons < RTE.default.showButtons
> RTE.default.FE.proc.allowTagsOutside < RTE.default.proc.allowTagsOutside
> RTE.default.FE.proc.entryHTMLparser_db.tags.img >
> 
> ## Added to allow embeded video
> RTE.default.FE.proc.entryHTMLparser_db.tags.object >
> RTE.default.FE.proc.entryHTMLparser_db.tags.embed >
> RTE.default.FE.proc.entryHTMLparser_db.tags.param >
> 
I would think that you need

RTE.default.proc.allowTags := addToList(object,param,embed)
RTE.default.proc.entryHTMLparser_db.allowTags := 
addToList(object,param,embed)

otherwise the tags will be protected (appear as text).

I don't think that the embed tag would survive in IE in contentEditable 
mode.

Regards,
Stanislas


More information about the TYPO3-project-rte mailing list