Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 25... Línea 25...
25
import {getPluginOptionName} from 'editor_tiny/options';
25
import {getPluginOptionName} from 'editor_tiny/options';
Línea 26... Línea 26...
26
 
26
 
27
const dataName = getPluginOptionName(pluginName, 'data');
27
const dataName = getPluginOptionName(pluginName, 'data');
28
const videoAllowedName = getPluginOptionName(pluginName, 'videoAllowed');
28
const videoAllowedName = getPluginOptionName(pluginName, 'videoAllowed');
-
 
29
const audioAllowedName = getPluginOptionName(pluginName, 'audioAllowed');
-
 
30
const screenAllowedName = getPluginOptionName(pluginName, 'screenAllowed');
Línea 29... Línea 31...
29
const audioAllowedName = getPluginOptionName(pluginName, 'audioAllowed');
31
const pausingAllowedName = getPluginOptionName(pluginName, 'pausingAllowed');
30
 
32
 
Línea 31... Línea 33...
31
export const register = (editor) => {
33
export const register = (editor) => {
Línea 42... Línea 44...
42
 
44
 
43
    registerOption(audioAllowedName, {
45
    registerOption(audioAllowedName, {
44
        processor: 'boolean',
46
        processor: 'boolean',
45
        "default": false,
47
        "default": false,
-
 
48
    });
-
 
49
 
-
 
50
    registerOption(screenAllowedName, {
-
 
51
        processor: 'boolean',
-
 
52
        "default": false,
-
 
53
    });
-
 
54
 
-
 
55
    registerOption(pausingAllowedName, {
-
 
56
        processor: 'boolean',
-
 
57
        "default": false,
46
    });
58
    });
Línea 47... Línea 59...
47
};
59
};
Línea 48... Línea 60...
48
 
60
 
Línea 61... Línea 73...
61
 *
73
 *
62
 * @param {TinyMCE} editor
74
 * @param {TinyMCE} editor
63
 * @returns {boolean}
75
 * @returns {boolean}
64
 */
76
 */
65
export const isVideoAllowed = (editor) => editor.options.get(videoAllowedName);
77
export const isVideoAllowed = (editor) => editor.options.get(videoAllowedName);
-
 
78
 
-
 
79
/**
-
 
80
 * Whether screen may be recorded in this instance.
-
 
81
 *
-
 
82
 * @param {TinyMCE} editor
-
 
83
 * @returns {boolean}
-
 
84
 */
-
 
85
export const isScreenAllowed = (editor) => editor.options.get(screenAllowedName);
-
 
86
 
-
 
87
/**
-
 
88
 * Whether pausing is allowed in this instance.
-
 
89
 *
-
 
90
 * @param {TinyMCE} editor
-
 
91
 * @returns {boolean}
-
 
92
 */
-
 
93
export const isPausingAllowed = (editor) => editor.options.get(pausingAllowedName);