On Freitag, 2. März 2007, patrick k. wrote:
> we´re also using more than one tinymce instance and we don´t have any
> problems.
> could you give more details about your specifications, e.g. how do
> you init tinymce?
>
> patrick.

Hello Patrick,

thanks for your reply. In the model TinyMCE is loaded like:

    class Admin:
        # ...
        js = (
            'js/tiny_mce/tiny_mce.js',
            'js/textareas.js',
        )

For the filebrowser integration i followed:
http://trac.dedhost-sil-076.sil.at/trac/filebrowser/

I had some problems getting the Filebrowser popup to send the link into the 
TinyMCE popup. Clicking the arrow simply did nothing. I ended up with two 
different files:
- js/tiny_mce/tiny_mce_popup.js
- js/tiny_mce/tiny_mce_popup_fb.js

Both have the same content. The first file is sent when the TinyMCE popup is 
loaded, the second when the Filebrowser popup comes (i've traced this with 
LiveHttpHeaders). It was the only way to get it working at all.

In templates/filebrowser/index.html the second JavaScript file is referenced 
this way:

{% ifequal is_popup '2' %}
[...]
<script language="javascript" type="text/javascript" src="{% 
admin_media_prefix %}/js/tiny_mce/tiny_mce_popup_fb.js"></script> 
[...]
{% endifequal %}

I have attached my textareas.js, which also contains the Filebrowser callback 
i'm using. Please let me know if you need more information.

Best Regards.

-- 
Dirk Eschler <mailto:[EMAIL PROTECTED]>
http://www.krusader.org

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

Attachment: textareas.js
Description: JavaScript source

Reply via email to