All Downloads are FREE. Search and download functionalities are using the official Maven repository.

template.js.tinymce.plugins.table.classes.Utils.js Maven / Gradle / Ivy

There is a newer version: 5.0.6
Show newest version
/**
 * 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 = '
'; } } } return { getSpanVal: getSpanVal, paddCell: paddCell }; });




© 2015 - 2024 Weber Informatics LLC | Privacy Policy