Hi !
First of all, if the FCKEditor author ever comes here, I'd like to congratulate him for his work
I was using tinyMCE, then found FCKEditor, and it is WAY better, simpler, and more efficient
my question is...I developped a plugin to embed a youtube video in the editor
what it does is simply pops a window, asks for someone to enter the <object>bla bla</object> tag provided by youtube, then inserts that code as html into the editor
works fine, but I'd like these object tags to render as a simple youtube image, just to give the user info about where his video was placed
is there some way I can tell the editor to show a specific image when it finds an <object> tag ?
First of all, if the FCKEditor author ever comes here, I'd like to congratulate him for his work
I was using tinyMCE, then found FCKEditor, and it is WAY better, simpler, and more efficient
my question is...I developped a plugin to embed a youtube video in the editor
what it does is simply pops a window, asks for someone to enter the <object>bla bla</object> tag provided by youtube, then inserts that code as html into the editor
works fine, but I'd like these object tags to render as a simple youtube image, just to give the user info about where his video was placed
is there some way I can tell the editor to show a specific image when it finds an <object> tag ?
Re: Custom rendering of HTML tags
Re: Custom rendering of HTML tags
I looked at the fckdocumentprocessor.js file
I checked the rendering of the embed tags, because I want the exact same thing
do
var aEmbeds = document.getElementsByTagName( 'EMBED' ) ;
iterate through them and replace them with a fake image
var oImg = FCKDocumentProcessor_CreateFakeImage( 'FCK__Flash', oCloned ) ;
I try to do the same with the object tags
var objects = document.getElementsByTagName( 'OBJECT' ) ;
but I get zero items
even tried var objects = document.getElementsByTagName('*');
and checked them one by one, but the object tags never make it in the document processir
the embed tags are though
what can I change so the the document processor receives the object tags ?