summaryrefslogtreecommitdiff
path: root/static-files/js/article-editing.js
blob: 1444bbad1d50fab0b8802e15a4a88fd916c1978e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2017, 2018, Matthias Andreas Benkard.

"use strict";

document.addEventListener('DOMContentLoaded', function() {
  var $ = jQuery;
  $(document.getElementById('content-field')).wymeditor({
    skin: "seamless",
    iframeBasePath: "/journal/wymeditor/iframe/pretty/",
    postInit: function(wym) {
      wym.fullscreen();
    }
  });
});