1
2
3// add a new toolbar button, but first check if there is a toolbar
4if (typeof window.toolbar !== 'undefined') {
5    window.toolbar[window.toolbar.length] = {
6        type: "fullscreenmode", // we have a new type that links to the function
7        title: "Fulls Screen Edit Mode",
8        icon: "../../plugins/fullscreenmode/fullscreened.png",
9        key:""
10    };
11}
12
13
14
15
16function addBtnActionFullscreenmode($btn, props, edid) {
17    // initialize stuff if required
18    // ...
19
20    $btn.click(function() {
21     jQuery('.editBox').toggleClass('fullscreen');
22     jQuery("[name='prosemirror']").toggleClass('fullscreen');
23        return false;
24    });
25
26    return 'click';
27}
28
29
30
31
32