PHP Classes

File: public/js/tinymce/src/themes/mobile/src/main/js/api/IosWebapp.js

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

Contents

Class file image Download
define( 'tinymce.themes.mobile.api.IosWebapp', [ 'ephox.alloy.api.component.GuiFactory', 'ephox.boulder.api.ValueSchema', 'ephox.katamari.api.Fun', 'ephox.sugar.api.properties.Css', 'tinymce.themes.mobile.api.MobileSchema', 'tinymce.themes.mobile.ios.core.IosMode', 'tinymce.themes.mobile.touch.view.TapToEditMask' ], function (GuiFactory, ValueSchema, Fun, Css, MobileSchema, IosMode, TapToEditMask) { var produce = function (raw) { var mobile = ValueSchema.asRawOrDie( 'Getting IosWebapp schema', MobileSchema, raw ); /* Make the toolbar */ Css.set(mobile.toolstrip, 'width', '100%'); Css.set(mobile.container, 'position', 'relative'); var onView = function () { mobile.setReadOnly(true); mode.enter(); }; var mask = GuiFactory.build( TapToEditMask.sketch(onView, mobile.translate) ); mobile.alloy.add(mask); var maskApi = { show: function () { mobile.alloy.add(mask); }, hide: function () { mobile.alloy.remove(mask); } }; var mode = IosMode.create(mobile, maskApi); return { setReadOnly: mobile.setReadOnly, refreshStructure: mode.refreshStructure, enter: mode.enter, exit: mode.exit, destroy: Fun.noop }; }; return { produce: produce }; } );