OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
_backup
/
tinymce
/
tinymce
/
src
/
themes
/
mobile
/
main
/
ts
/
channels
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/20/2020 06:45:48 AM
rwxr-xr-x
📄
Receivers.ts
1.03 KB
02/20/2020 06:32:24 AM
rw-r--r--
📄
TinyChannels.ts
593 bytes
02/20/2020 06:32:26 AM
rw-r--r--
Editing: Receivers.ts
Close
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ */ import { Receiving } from '@ephox/alloy'; import { Objects } from '@ephox/boulder'; import TinyChannels from './TinyChannels'; const format = function (command, update) { return Receiving.config({ channels: Objects.wrap( TinyChannels.formatChanged(), { onReceive (button, data) { if (data.command === command) { update(button, data.state); } } } ) }); }; const orientation = function (onReceive) { return Receiving.config({ channels: Objects.wrap( TinyChannels.orientationChanged(), { onReceive } ) }); }; const receive = function (channel, onReceive) { return { key: channel, value: { onReceive } }; }; export default { format, orientation, receive };