editor.on('keyup', function(e) {
        if (e.keyCode == 32 && !tinymce.util.VK.modifierPressed(e)) {
            handleSpace();
        }
    });