2012-10-29, 05:27 AM
2012-10-29, 05:35 AM
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
2012-10-29, 06:14 AM
can u tell me instructions to add [code ] tags to the editor?
2012-10-29, 07:34 AM
Code Tag is there, as Yaldaram said:
![[Image: d24d4b91130b6a6a5fa2812ea53eddf9.png]](https://camo.mybb.com/1abcc844a77ce06ea49e091dfee8ce915e0b5789/687474703a2f2f73706565646361702e6e65742f73686172696e672f313130302f64323464346239313133306236613661356661323831326561353365646466392e706e67)
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'}
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'}