Skip to content
This repository has been archived by the owner on Jan 3, 2020. It is now read-only.

tleish/redmine_jstoolbar_ext_buttons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maintained? No

THIS PROJECT IS NO LONGER BEING MAINTAINED

The author no longer uses Redmine and cannot effectively update and maintain this repo.

Redmine jsToolbar Buttons Extension

Summary

The Redmine jsToolbar Buttons Extension adds some additional buttons to the Redmine wiki and text editor toolbar.

Requirements

This plugin requires the Redmine jsToolbar Ext plugin to also be installed.

Buttons

These buttons are for convenience for inserting text.

  • Insert Horizontal Rule
  • Insert Link Title
  • Insert Ruby Syntax Formatting
  • Insert Javascript Syntax Formatting

Buttons

Button Customization

To add/remove your own buttons to the list, update the following files:

  • plugins/redmine_jstoolbar_ext_buttons/assets/javascripts/redmine_jstoolbar_ext_buttons.js.
  • plugins/redmine_jstoolbar_ext_buttons/assets/stylesheets/redmine_jstoolbar_ext_stylesheets.js.
{
  title: 'My Button Title',
  after: 'h3', // element to place button after, in this particular case after the button with the class name '.jstb_h3'
  fn: {
    wiki: function () {
      this.encloseLineSelection('\n---\n', '', function (str) {
        if (str.length > 0) { str += '\n'; }
        return str;
      });
    }
  }
},

For other wiki function examples, look at the source code for the jsToolbar in the Redmine Github Repository:

Installation

$ cd redmine/plugins
$ git clone https://github.com/tleish/redmine_jstoolbar_ext
$ git clone https://github.com/tleish/redmine_jstoolbar_ext_buttons

restart Redmine

See Also: