views:

45

answers:

2

I'm new to tinyMCE and I like the jQuery plugin that comes in the latest version. However I'd like to set global options that would be used in every subsequent instance; for example themes and skins. Is this possible?

Edit.

Here is an example of the method I have used.

$(document).ready(function(){
    var config = {
        directionality : 'rtl'
    }

    $('#message').tinymce(
        $.extend({}, config, {
            directionality : "ltr"
        }
    );
});
A: 

Maybe this article, in which the author explains how to instantiate many TinyMCE editors in the same page sharing some configuration and having some specific properties could help you.

Roberto Aloi
+1  A: 

why not just create a defaults object containing the common options

and then use $.extend(defaults, overrideOptions);

to put your overrides for each instance:

Avi Pinto
Yes, should have thought of that. cheers
gawpertron