%PDF- %PDF-
Direktori : /home/opti/workflow/src/public/app-assets/vendors/js/editors/tinymce/plugins/table/classes/ |
Current File : /home/opti/workflow/src/public/app-assets/vendors/js/editors/tinymce/plugins/table/classes/Utils.js |
/** * Utils.js * * Released under LGPL License. * Copyright (c) 1999-2015 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ /** * Various utility functions. * * @class tinymce.tableplugin.Utils * @private */ define("tinymce/tableplugin/Utils", [ "tinymce/Env" ], function(Env) { function getSpanVal(td, name) { return parseInt(td.getAttribute(name) || 1, 10); } function paddCell(cell) { if (!Env.ie || Env.ie > 9) { if (!cell.hasChildNodes()) { cell.innerHTML = '<br data-mce-bogus="1" />'; } } } return { getSpanVal: getSpanVal, paddCell: paddCell }; });