Project

General

Profile

How can i inset new button in front of help button in jstoolbar

Added by Terence Mill almost 11 years ago

If i include a js file via plugin i manage to get some button in the text editor toolbar at the end (behin the help link)

jsToolBar.prototype.elements.mytool = {
  type: 'button',
  title: 'mytool tag',
  fn: {
    wiki: function() { this.encloseSelection('{{mytool}}', '{{mytool}}') }
  }
}

Nut how can i make the tool button in inserted before the help button, so hel stays right most all the time?