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
-~----------~----~----~----~------~----~------~--~---