Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 22... Línea 22...
22
 */
22
 */
23
import {getTinyMCE} from 'editor_tiny/loader';
23
import {getTinyMCE} from 'editor_tiny/loader';
24
import {getPluginMetadata} from 'editor_tiny/utils';
24
import {getPluginMetadata} from 'editor_tiny/utils';
25
import getSetupAudioCommands from './commands_audio';
25
import getSetupAudioCommands from './commands_audio';
26
import getSetupVideoCommands from './commands_video';
26
import getSetupVideoCommands from './commands_video';
-
 
27
import getSetupScreenCommands from './commands_screen';
-
 
28
import getSetupVideoContextMenuCommands from './commands_video_context_menu';
27
import * as Configuration from './configuration';
29
import * as Configuration from './configuration';
28
import * as Options from './options';
30
import * as Options from './options';
29
import {
31
import {
30
    component,
32
    component,
31
    pluginName
33
    pluginName
Línea 35... Línea 37...
35
export default new Promise(async(resolve) => {
37
export default new Promise(async(resolve) => {
36
    const [
38
    const [
37
        tinyMCE,
39
        tinyMCE,
38
        setupAudioCommands,
40
        setupAudioCommands,
39
        setupVideoCommands,
41
        setupVideoCommands,
-
 
42
        setupScreenCommands,
-
 
43
        setupVideoContextMenuCommands,
40
        pluginMetadata,
44
        pluginMetadata,
41
    ] = await Promise.all([
45
    ] = await Promise.all([
42
        getTinyMCE(),
46
        getTinyMCE(),
43
        getSetupAudioCommands(),
47
        getSetupAudioCommands(),
44
        getSetupVideoCommands(),
48
        getSetupVideoCommands(),
-
 
49
        getSetupScreenCommands(),
-
 
50
        getSetupVideoContextMenuCommands(),
45
        getPluginMetadata(component, pluginName),
51
        getPluginMetadata(component, pluginName),
46
    ]);
52
    ]);
Línea 47... Línea 53...
47
 
53
 
48
    tinyMCE.PluginManager.add(`${component}/plugin`, (editor) => {
54
    tinyMCE.PluginManager.add(`${component}/plugin`, (editor) => {
Línea 53... Línea 59...
53
        setupVideoCommands(editor);
59
        setupVideoCommands(editor);
Línea 54... Línea 60...
54
 
60
 
55
        // Setup the Commands (buttons, menu items, and so on) for audio.
61
        // Setup the Commands (buttons, menu items, and so on) for audio.
Línea -... Línea 62...
-
 
62
        setupAudioCommands(editor);
-
 
63
 
-
 
64
        // Setup the Commands (buttons, menu items, and so on) for screen.
-
 
65
        setupScreenCommands(editor);
-
 
66
 
-
 
67
        // Setup the Commands (context menu) for video (recording and screen-sharing).
56
        setupAudioCommands(editor);
68
        setupVideoContextMenuCommands(editor);
57
 
69
 
Línea 58... Línea 70...
58
        return pluginMetadata;
70
        return pluginMetadata;
59
    });
71
    });