PHP Classes

File: public/js/tinymce/src/plugins/table/src/main/js/actions/TableWire.js

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

Contents

Class file image Download
/** * TableWire.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.actions.TableWire', [ 'ephox.snooker.api.ResizeWire', 'ephox.sugar.api.dom.Insert', 'ephox.sugar.api.dom.Remove', 'ephox.sugar.api.node.Body', 'ephox.sugar.api.node.Element', 'ephox.sugar.api.properties.Css', 'tinymce.plugins.table.alien.Util' ], function (ResizeWire, Insert, Remove, Body, Element, Css, Util) { var createContainer = function () { var container = Element.fromTag('div'); Css.setAll(container, { position: 'static', height: '0', width: '0', padding: '0', margin: '0', border: '0' }); Insert.append(Body.body(), container); return container; }; var get = function (editor, container) { return editor.inline ? ResizeWire.body(Util.getBody(editor), createContainer()) : ResizeWire.only(Element.fromDom(editor.getDoc())); }; var remove = function (editor, wire) { if (editor.inline) { Remove.remove(wire.parent()); } }; return { get: get, remove: remove }; } );