Advertisement:

Author Topic: How to add extra buttons in the WYSIWYG editor?  (Read 1840 times)

Offline Mari-chi

  • Full Member
  • ***
  • Posts: 420
  • Gender: Female
  • puddiblast attack!
    • Ad Lucem
How to add extra buttons in the WYSIWYG editor?
« 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 [justify] 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!

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 69,123
    • StoryBB/StoryBB on GitHub
Re: How to add extra buttons in the WYSIWYG editor?
« Reply #1 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.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

Nothing turns to hate so bitter as what once was love.

Offline Mari-chi

  • Full Member
  • ***
  • Posts: 420
  • Gender: Female
  • puddiblast attack!
    • Ad Lucem
Re: How to add extra buttons in the WYSIWYG editor?
« Reply #2 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. :)

Offline NicoleSi

  • Newbie
  • *
  • Posts: 4
Re: How to add extra buttons in the WYSIWYG editor?
« Reply #3 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.