PHP Classes

File: public/js/tinymce/src/plugins/table/src/main/js/queries/Direction.js

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   GoLavaCMS   public/js/tinymce/src/plugins/table/src/main/js/queries/Direction.js   Download  
File: public/js/tinymce/src/plugins/table/src/main/js/queries/Direction.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: 759 bytes
 

Contents

Class file image Download
/** * Direction.js * * Released under LGPL License. * Copyright (c) 1999-2017 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ define( 'tinymce.plugins.table.queries.Direction', [ 'ephox.katamari.api.Fun', 'ephox.sugar.api.properties.Direction' ], function (Fun, Direction) { var ltr = { isRtl: Fun.constant(false) }; var rtl = { isRtl: Fun.constant(true) }; // Get the directionality from the position in the content var directionAt = function (element) { var dir = Direction.getDirection(element); return dir === 'rtl' ? rtl : ltr; }; return { directionAt: directionAt }; } );