Tried that but since the init of tinymce is done in a string and later encoded to JSON the JS function never get to be a JS function... Or maybe I'm missing something.
Regards On Oct 21, 7:07 am, Joost Cassee <[email protected]> wrote: > On 20 okt, 00:54, eka <[email protected]> wrote: > > > Is there any way to achieve this with django-tinymce? > > >http://tinymce.moxiecode.com/examples/example_20.php > > > I tried configuring it, but seems to not like the way I pass the > > function. > > You basically need to generate this piece of configuration: > > setup : function(ed) { > // Add a custom button > ed.addButton('mybutton', { > title : 'My button', > image : 'img/example.gif', > onclick : function() { > // Add you own code to execute something on click > ed.focus(); > ed.selection.setContent('<strong>Hello world!</strong>'); > } > }); > > } > > What did you try? > > Regards, > > Joost --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django 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/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

