summaryrefslogtreecommitdiff
path: root/static-files/js/article-editing.js
blob: 99224291d13bf4fe8f1d6ad5391190ee544324f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright 2017, Matthias Andreas Benkard.

"use strict";

jQuery(function($) {
  $.trumbowyg.svgPath = '/journal/trumbowyg/icons.svg';
  $('#content-field').trumbowyg({
    btns: [
      ['viewHTML'],
      ['formatting'],
      'btnGrp-semantic',
      ['superscript', 'subscript'],
      ['link'],
      ['base64'],
      'btnGrp-lists',
      ['horizontalRule'],
      ['removeformat'],
      ['preformatted'],
      ['table', 'tableAddRow', 'tableAddColumn'],
      ['fullscreen']
    ],
    autogrow: true
  });
});