MediaWiki
Gadget-ve-colnode-ce.js
From Dogcraft Wiki
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (โ-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (โ-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
(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 );
});