PHP Classes

File: public/js/tinymce/src/themes/mobile/src/main/js/ios/focus/ResumeEditing.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/themes/mobile/src/main/js/ios/focus/ResumeEditing.js   Download  
File: public/js/tinymce/src/themes/mobile/src/main/js/ios/focus/ResumeEditing.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: GoLavaCMS
Publish content on Web pages with SEO support
Author: By
Last change:
Date: 6 years ago
Size: 898 bytes
 

Contents

Class file image Download
define( 'tinymce.themes.mobile.ios.focus.ResumeEditing', [ 'ephox.sugar.api.dom.Compare', 'ephox.sugar.api.dom.Focus', 'ephox.sugar.api.node.Element', 'tinymce.themes.mobile.touch.focus.CursorRefresh' ], function (Compare, Focus, Element, CursorRefresh) { var 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); }; return { resume: resume }; } );