OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
_backup
/
tinymce
/
tinymce
/
src
/
themes
/
mobile
/
main
/
ts
/
util
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/20/2020 06:45:48 AM
rwxr-xr-x
📄
CaptureBin.ts
733 bytes
02/20/2020 06:32:51 AM
rw-r--r--
📄
CssUrls.ts
758 bytes
02/20/2020 06:32:51 AM
rw-r--r--
📄
DataAttributes.ts
472 bytes
02/20/2020 06:32:52 AM
rw-r--r--
📄
FontSizes.ts
2.14 KB
02/20/2020 06:32:52 AM
rw-r--r--
📄
FormatChangers.ts
1.11 KB
02/20/2020 06:32:53 AM
rw-r--r--
📄
RangePreserver.ts
1002 bytes
02/20/2020 06:32:53 AM
rw-r--r--
📄
Rectangles.ts
1.78 KB
02/20/2020 06:32:54 AM
rw-r--r--
📄
SkinLoaded.ts
553 bytes
02/20/2020 06:32:54 AM
rw-r--r--
📄
StyleConversions.ts
1.46 KB
02/20/2020 06:32:55 AM
rw-r--r--
📄
StyleFormats.ts
3.07 KB
02/20/2020 06:32:55 AM
rw-r--r--
📄
TappingEvent.ts
1.09 KB
02/20/2020 06:32:56 AM
rw-r--r--
📄
Thor.ts
3 KB
02/20/2020 06:32:56 AM
rw-r--r--
📄
UiDomFactory.ts
676 bytes
02/20/2020 06:32:57 AM
rw-r--r--
Editing: RangePreserver.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 { Fun } from '@ephox/katamari'; import { PlatformDetection } from '@ephox/sand'; const platform = PlatformDetection.detect(); /* At the moment, this is only going to be used for Android. The Google keyboard * that comes with Android seems to shift the selection when the editor gets blurred * to the end of the word. This function rectifies that behaviour * * See fiddle: http://fiddle.tinymce.com/xNfaab/3 or http://fiddle.tinymce.com/xNfaab/4 */ const preserve = function (f, editor) { const rng = editor.selection.getRng(); f(); editor.selection.setRng(rng); }; const forAndroid = function (editor, f) { const wrapper = platform.os.isAndroid() ? preserve : Fun.apply; wrapper(f, editor); }; export default { forAndroid };