1

Topic: Different buttons on same page

Tere,

I have more than one TinyMCE textareas on  the same page.

How can I display/use different buttons in each

2

Re: Different buttons on same page

Ya, create multiple init functions and use editor_selector to distinguish them.

3

Re: Different buttons on same page

What I need is that:
- textarea1 has no buttons at all
- textarea2 has only 'print' button

At the moment it is like this:

    tinyMCE.init({
        mode : "specific_textareas",
        editor_selector : "textarea1",
        theme : "simple"
        });
tinyMCE.init({
         mode : "specific_textareas",
        editor_selector : "textarea2",
        theme : "advanced",
    plugins : "print",

        theme_advanced_buttons1 : "print"

Last edited by Sakunne (2012-05-26 10:27:11)

4

Re: Different buttons on same page

Um. So does it work?
You likely also need:

theme_advanced_buttons2: "",
theme_advanced_buttons3: "",

5

Re: Different buttons on same page

The next release will remove the need to empty these out. Makes more sense but might break some compatibility.

Best regards,
Spocke - Main developer of TinyMCE