Page MenuHomeWickedGov Phorge

ve.ce.TextStyleAnnotation.js
No OneTemporary

Size
912 B
Referenced Files
None
Subscribers
None

ve.ce.TextStyleAnnotation.js

/*!
* VisualEditor ContentEditable TextStyleAnnotation class.
*
* @copyright See AUTHORS.txt
*/
/**
* ContentEditable text style annotation.
*
* @class
* @abstract
* @extends ve.ce.Annotation
* @constructor
* @param {ve.dm.TextStyleAnnotation} model Model to observe
* @param {ve.ce.ContentBranchNode} [parentNode] Node rendering this annotation
* @param {Object} [config] Configuration options
*/
ve.ce.TextStyleAnnotation = function VeCeTextStyleAnnotation() {
// Parent constructor
ve.ce.TextStyleAnnotation.super.apply( this, arguments );
// DOM changes
this.$element.addClass( 've-ce-textStyleAnnotation' );
};
/* Inheritance */
OO.inheritClass( ve.ce.TextStyleAnnotation, ve.ce.Annotation );
/* Methods */
/**
* @inheritdoc
*/
ve.ce.TextStyleAnnotation.prototype.getTagName = function () {
return this.getModel().getAttribute( 'nodeName' ) || this.constructor.static.tagName;
};

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 22, 04:15 (1 d, 6 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
83/91/fca32f5ba9eeb05f981fa0cdc4e6
Default Alt Text
ve.ce.TextStyleAnnotation.js (912 B)

Event Timeline