aboutsummaryrefslogtreecommitdiff
path: root/resources/assets/javascripts/cke/wiki-link/editing.js
blob: a42461f01ea94d3c4fcf89ed5a512fc3cf8e8316 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { Plugin } from '@ckeditor/ckeditor5-core';
import InsertCommand from './insertcommand';

export default class WikiLinkEditing extends Plugin {
    static get pluginName() {
        return 'WikiLinkEditing';
    }

    init() {
        this._defineCommands();
    }

    _defineCommands() {
        this.editor.commands.add('insertStudipWikiLink', new InsertCommand(this.editor));
    }
}