MyBB Community Forums

Full Version: help????
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
how can i remove the phpcode button in the editor and replace it with code so it
uses [code ] [/code ] tags instead
There is no need to "replace" that button since its already available on editors. You just have to remove the [php] button from ./jscripts/editor.js
can u tell me instructions to add [code ] tags to the editor?
Code Tag is there, as Yaldaram said:
[Image: d24d4b91130b6a6a5fa2812ea53eddf9.png]

Available representing code in editor.js is:
{type: 'button', name: 'code', sprite: 'code', insert: 'code', title: this.options.lang.title_code},

This is the code line for a new button against existing BBCode:
{type: 'button', name: 'BBCodeName', insert: 'BBCodeName', image: 'imgforbtn.png', title: 'BBCodeName'}