MediaWiki

Gadget-ve-colnode-ce.js

From Dogcraft Wiki

(Created page with "(function () { /*! * VisualEditor ContentEditable ColumnNode class. * * @copyright 2011-2020 VisualEditor Team and others; see http://ve.mit-license.org * @license The...")
 
(No difference)

Latest revision as of 22:36, 17 May 2022

(function () {
/*!
	 * VisualEditor ContentEditable ColumnNode class.
	 *
	 * @copyright 2011-2020 VisualEditor Team and others; see http://ve.mit-license.org
	 * @license The MIT License (MIT); see LICENSE.txt
	 */
	
	/**
	 * ContentEditable Column node.
	 *
	 * @class
	 * @extends ve.ce.BranchNode
	 * @constructor
	 * @param {ve.dm.ColumnNode} model Model to observe
	 * @param {Object} [config] Configuration options
	 */
	ve.ce.ColumnNode = function VeCeColumnNode() {
		// Parent constructor
		ve.ce.ColumnNode.super.apply( this, arguments );
		
		this.$element.addClass( 've-ce-columnNode' );
		this.$element.addClass( 'dw-g-columns');
		console.log('ce: ');
		console.log(this);
	};
	
	/* Inheritance */
	
	OO.inheritClass( ve.ce.ColumnNode, ve.ce.BranchNode );
	OO.mixinClass( ve.ce.ColumnNode, ve.ce.ClassAttributeNode );
	
	/* Static Properties */
	
	ve.ce.ColumnNode.static.name = 'column';
	
	ve.ce.ColumnNode.static.tagName = 'div';
	
	ve.ce.ColumnNode.static.removeEmptyLastChildOnEnter = true;
	
	/* Registration */
	
	ve.ce.nodeFactory.register( ve.ce.ColumnNode );
});
Background Valentine's Day Event 2024 by TheWhiteTigerNL