PHP Classes

File: public/js/tinymce/src/themes/mobile/src/main/js/android/core/AndroidMode.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/themes/mobile/src/main/js/android/core/AndroidMode.js   Download  
File: public/js/tinymce/src/themes/mobile/src/main/js/android/core/AndroidMode.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: 2,142 bytes
 

Contents

Class file image Download
define( 'tinymce.themes.mobile.android.core.AndroidMode', [ 'ephox.katamari.api.Singleton', 'ephox.sugar.api.properties.Class', 'tinymce.themes.mobile.android.core.AndroidEvents', 'tinymce.themes.mobile.android.core.AndroidSetup', 'tinymce.themes.mobile.ios.core.PlatformEditor', 'tinymce.themes.mobile.util.Thor', 'tinymce.themes.mobile.style.Styles', 'tinymce.themes.mobile.touch.view.MetaViewport' ], function (Singleton, Class, AndroidEvents, AndroidSetup, PlatformEditor, Thor, Styles, MetaViewport) { var create = function (platform, mask) { var meta = MetaViewport.tag(); var androidApi = Singleton.api(); var androidEvents = Singleton.api(); var enter = function () { mask.hide(); Class.add(platform.container, Styles.resolve('fullscreen-maximized')); Class.add(platform.container, Styles.resolve('android-maximized')); meta.maximize(); /// TM-48 Prevent browser refresh by swipe/scroll on android devices Class.add(platform.body, Styles.resolve('android-scroll-reload')); androidApi.set( AndroidSetup.setup(platform.win, PlatformEditor.getWin(platform.editor).getOrDie('no')) ); PlatformEditor.getActiveApi(platform.editor).each(function (editorApi) { Thor.clobberStyles(platform.container, editorApi.body()); androidEvents.set( AndroidEvents.initEvents(editorApi, platform.toolstrip, platform.alloy) ); }); }; var exit = function () { meta.restore(); mask.show(); Class.remove(platform.container, Styles.resolve('fullscreen-maximized')); Class.remove(platform.container, Styles.resolve('android-maximized')); Thor.restoreStyles(); /// TM-48 re-enable swipe/scroll browser refresh on android Class.remove(platform.body, Styles.resolve('android-scroll-reload')); androidEvents.clear(); androidApi.clear(); }; return { enter: enter, exit: exit }; }; return { create: create }; } );