I would to add a custom BB Code to my forum for creat an add-on and for this i need to add option. Like this : [tag="red"]text[/tag] I know how to do this but t don't know how to add option.
If you want to color the background as you color the text (simply with pressing a button), you can use this editor which has a wysiwyg background bb code.
If you don't want to change the editor (for some usergroups) but want to have a default color hexa in the bb code option when you click on the button, then you can use this addon with the same above configuration. There's an option to set a default option and/or a defaut content (when you click on the button).