OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
_backup
/
tinymce
/
tinymce
/
src
/
themes
/
mobile
/
main
/
ts
/
ios
/
focus
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/20/2020 06:36:33 AM
rwxr-xr-x
📄
FakeSelection.ts
2.47 KB
02/20/2020 06:36:21 AM
rw-r--r--
📄
ResumeEditing.ts
912 bytes
02/20/2020 06:36:21 AM
rw-r--r--
Editing: ResumeEditing.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 { Compare, Element, Focus } from '@ephox/sugar'; import CursorRefresh from '../../touch/focus/CursorRefresh'; const resume = function (cWin, frame) { Focus.active().each(function (active) { // INVESTIGATE: This predicate may not be required. The purpose of it is to ensure // that the content window's frame element is not unnecessarily blurred before giving // it focus. if (! Compare.eq(active, frame)) { Focus.blur(active); } }); // Required when transferring from another input area. cWin.focus(); Focus.focus(Element.fromDom(cWin.document.body)); CursorRefresh.refresh(cWin); }; export default { resume };