Remove upgrade button in TinyMCE
Asked Answered
H

2

37

I am using tinymce in inline mode and am new to the tool. I've gotten my text field input to look how I want with minimal editing buttons. However, I am stumped on how to remove the "Upgrade" button from the toolbar when the text field is active.

enter image description here

Is this even possible?

Here is the initialization that I am using. I am using a self-hosted community installation on a WAMP server.

`

<script>
    tinymce.init({
        selector: '#addressinput',
        inline: true,
        toolbar: 'bold underline italic superscript',
        menubar: '',
        branding: false,
        force_br_newlines : true,
        min_height: 100
    });
</script>

`

Heartfelt answered 1/11, 2022 at 3:34 Comment(1)
Find out this button's selector (class there i guess) and hide it with CSS display: noneAlula
O
39

The TinyMCE Docs include instructions for turning the Premium Upgrade Promotion Option off.

Outland answered 1/11, 2022 at 3:54 Comment(2)
Thanks! This is what I was looking for. I must have missed it in the docs.Heartfelt
Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.Counterclaim
M
57

This link to the Docs explains the step involved:

https://tiny.cloud/docs/tinymce/6/editor-premium-upgrade-promotion/#premium-upgrade-promotion-option

Essentially setting promotion to false during initialisation will disable the upgrade item:

tinymce.init({
//other configuration,
promotion: false
});

Musso answered 1/11, 2022 at 4:4 Comment(0)
O
39

The TinyMCE Docs include instructions for turning the Premium Upgrade Promotion Option off.

Outland answered 1/11, 2022 at 3:54 Comment(2)
Thanks! This is what I was looking for. I must have missed it in the docs.Heartfelt
Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.Counterclaim

© 2022 - 2024 — McMap. All rights reserved.