OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
_backup
/
tinymce
/
tinymce
/
src
/
themes
/
mobile
/
main
/
ts
/
api
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/20/2020 06:45:48 AM
rwxr-xr-x
📄
AndroidWebapp.ts
1.64 KB
02/20/2020 06:32:19 AM
rw-r--r--
📄
IosWebapp.ts
1.57 KB
02/20/2020 06:32:19 AM
rw-r--r--
📄
MobileSchema.ts
2.16 KB
02/20/2020 06:32:20 AM
rw-r--r--
📄
Settings.ts
583 bytes
02/20/2020 06:32:20 AM
rw-r--r--
Editing: MobileSchema.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 { FieldSchema, ValueSchema, Processor } from '@ephox/boulder'; import { Fun } from '@ephox/katamari'; import { Element, Traverse } from '@ephox/sugar'; export default ValueSchema.objOf([ FieldSchema.strictObjOf('editor', [ // Maybe have frame as a method, but I doubt it ... I think we pretty much need a frame FieldSchema.strict('getFrame'), FieldSchema.option('getBody'), FieldSchema.option('getDoc'), FieldSchema.option('getWin'), FieldSchema.option('getSelection'), FieldSchema.option('setSelection'), FieldSchema.option('clearSelection'), FieldSchema.option('cursorSaver'), FieldSchema.option('onKeyup'), FieldSchema.option('onNodeChanged'), FieldSchema.option('getCursorBox'), FieldSchema.strict('onDomChanged'), FieldSchema.defaulted('onTouchContent', Fun.noop), FieldSchema.defaulted('onTapContent', Fun.noop), FieldSchema.defaulted('onTouchToolstrip', Fun.noop), FieldSchema.defaulted('onScrollToCursor', Fun.constant({ unbind: Fun.noop })), FieldSchema.defaulted('onScrollToElement', Fun.constant({ unbind: Fun.noop })), FieldSchema.defaulted('onToEditing', Fun.constant({ unbind: Fun.noop })), FieldSchema.defaulted('onToReading', Fun.constant({ unbind: Fun.noop })), FieldSchema.defaulted('onToolbarScrollStart', Fun.identity) ]), FieldSchema.strict('socket'), FieldSchema.strict('toolstrip'), FieldSchema.strict('dropup'), FieldSchema.strict('toolbar'), FieldSchema.strict('container'), FieldSchema.strict('alloy'), FieldSchema.state('win', function (spec) { return Traverse.owner(spec.socket).dom().defaultView; }), FieldSchema.state('body', function (spec) { return Element.fromDom( spec.socket.dom().ownerDocument.body ); }), FieldSchema.defaulted('translate', Fun.identity), FieldSchema.defaulted('setReadOnly', Fun.noop), FieldSchema.defaulted('readOnlyOnInit', Fun.constant(true)) ]) as Processor;