Hi, ive made a custome picture dialog for FCK editor but now i need to know how i can insert the pic from my dialog into the document by clicking on the picture. Thanks in advance..
Wed, 05/18/2005 - 03:22
#1
RE: Custom Picture Dialog - Need help
RE: Custom Picture Dialog - Need help
Getting the editor:
var oEditor = window.parent.InnerDialogLoaded() ;
Adding a img to it:
var oImg = oEditor.FCK.CreateElement( 'IMG' ) ;
oImg.src = url ;
oImg.setAttribute( '_fcksavedurl', url ) ;
I'm not sure if this is all the code, but just give it a try...