Hi,

Have you added both lines in the _edit_header.php template?

<?php use_helper('sfMediaLibrary') ?>
<?php echo init_media_library() ?>

My line in the generator is

body: { params: size=80x40 rich=true  
tinymce_options='file_browser_callback:"sfMediaLibrary.fileBrowserCallBa 
ck"' }


The code on the wiki escape the have \' but mine worked without.

I had the same problem just yesterday and fixed it by adding those  
two lines of code and the above generator code.

Hope it helps.



On Jul 9, 2007, at 1:28 PM, Ant Cunningham wrote:

>
> Have the steps/configuration for this plugin changed and not been  
> updated in
> the wiki. Ive followed those steps as well as trying different syntax
> techniques in my generator.yml to get it to work with tinymce and  
> none are
> working. I keep getting the error beleo. It seems like  
> sfMEdiaLibrary isnt
> initialized... actually that the script hasn't been loaded. But  
> just for
> good measure I included in the view.yml for my app to see if it made a
> difference. It made none. Ive also tried adding the init call to  
> the helper
> in my theme's editSuccess and _edit_header templates...
>
> JS Console Message:
>
> tinyMCEPopup.windowOpener.sfMediaLibrary has no properties
> openBrowser("src", "image",
> "advimage_image_browser_callback")tiny_mce_popup.js (line 272)
> openBrower("srcbrowser", "src", "image",
> "advimage_image_browser_callback")form_utils.js (line 74)
> [Break on this error] if (eval('typeof(tinyMCEPopup.windowOpener.'  
> + cb +
> ')') == "undefined")
>
>
>
> >

Davinder
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to