Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Mari-chi on January 24, 2011, 01:58:32 PM

Title: How to add extra buttons in the WYSIWYG editor?
Post by: Mari-chi on January 24, 2011, 01:58:32 PM
I'm curious as to how I can add extra 'buttons' in the WYSIWYG editor. :3

I've already edited the subs.php file to allow the
tag in BBC... And I have the image I want to use for the WYSIWYG button... :/ Now I need to know if I can add it to the WYSIWYG editor, beside the 'right align' button.

<3 Thanks for any help!
Title: Re: How to add extra buttons in the WYSIWYG editor?
Post by: Arantor on January 24, 2011, 02:18:33 PM
You extend the list of buttons as shown in Subs-Editor.php

http://custom.simplemachines.org/mods/index.php?action=parse;mod=2065;attach=140603;smf_version=2.0_RC3 is an example of how to add two buttons.
Title: Re: How to add extra buttons in the WYSIWYG editor?
Post by: Mari-chi on January 24, 2011, 08:33:03 PM
Dx Oh man, that looks confusing. Thanks for the link, I'll definitely take a look at it later. :)
Title: Re: How to add extra buttons in the WYSIWYG editor?
Post by: NicoleSi on January 22, 2018, 01:02:12 PM
Hello there,

i need also help to add extra button  in the WYSIWYG editor. But i need to add a button for Videos of Adult websites - BBC tag . Any idea how to do that?

Thank you in advance for any help.