PHP Classes

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

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

Contents

Class file image Download
/** * TableTargets.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.TableTargets', [ 'ephox.katamari.api.Fun', 'ephox.katamari.api.Option', 'ephox.katamari.api.Struct', 'tinymce.plugins.table.queries.CellOperations' ], function (Fun, Option, Struct, CellOperations) { var noMenu = function (cell) { return { element: Fun.constant(cell), mergable: Option.none, unmergable: Option.none, selection: Fun.constant([cell]) }; }; var forMenu = function (selections, table, cell) { return { element: Fun.constant(cell), mergable: Fun.constant(CellOperations.mergable(table, selections)), unmergable: Fun.constant(CellOperations.unmergable(cell, selections)), selection: Fun.constant(CellOperations.selection(cell, selections)) }; }; var notCell = function (element) { return noMenu(element); }; var paste = Struct.immutable('element', 'clipboard', 'generators'); var pasteRows = function (selections, table, cell, clipboard, generators) { return { element: Fun.constant(cell), mergable: Option.none, unmergable: Option.none, selection: Fun.constant(CellOperations.selection(cell, selections)), clipboard: Fun.constant(clipboard), generators: Fun.constant(generators) }; }; return { noMenu: noMenu, forMenu: forMenu, notCell: notCell, paste: paste, pasteRows: pasteRows }; } );