MyBB Community Forums

Full Version: Can someone guide me with this button please
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am confused I guess I have not written it correctly.. so therefore I do not understand. Yes I am a noob at this.

Goal: to have one of my existing plug-ins work with an editor button which installed correctly next to the color choice. In fact when you click on the hide icon when posting it actually does this:
[Hide]info[/Hide] which are the correct tags but no function at all.
I have the editor js done correctly but I am not sure mycode is done right.

[\hide\](.*?)\[/hide\]

and if that is correct what would I put in the this section of the js code.

{type: 'button', name: 'hide', insert: 'what do I put here', image: 'hide.png', title: 'Hide'}
I have the plugin but it would be easier to use the hide with the button when posting my links ..

Any help would be greatly appreciated...thank youBig Grin