Forum

Thread tagged as: Problem, Third-party, Redactor

New Redactor is missing HTML button

The latest Redactor is missing HTML button, the one which shows the actual HTML. Is this by design, or did I do something wrong when updating to the latest version?

Rogier Weenen

Rogier Weenen 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Redactor is just packaged as it comes in the download - all we do is add the file upload handling.

Does anybody else has this same problem? That the html button is not showing in the toolbar of the latest Redactor editor…

Drew McLellan

Drew McLellan 2638 points
Perch Support

I don't doubt it, but what I'm saying is that's not something we change.

Fixed it by adding the following options to the config file:

focus: true buttonSource: true

Thanks!

Cheers, thanks for the fix.

Simon Clay

Simon Clay 127 points

Hi chaps, I'm not sure where to put the 'focus: true buttonSource: true' is it in the '_config.inc' in the redactor folder, if so where should I place it?

Thanks.

Yes, I added

buttonSource: true,

above uploadfields line (line 13)

I didn't want the focus: true part of this

Simon Clay

Simon Clay 127 points

Thanks very much Clive, that worked.

What does the focus part do anyway?

Focus: true will add the cursor into the textarea field (so that you can start typing into the textarea immediately). That might be OK if the textarea field is the only field (or first field) but doesn't work too well if the region has more than one textarea field (the edit page will jump to that point on first load).

Simon Clay

Simon Clay 127 points

Thanks so much Clive.