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:
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'}