mediawiki-extensions-Visual.../modules/ve-mw/ce/annotations/ve.ce.MWNowikiAnnotation.js
James D. Forrester 2c77e88d2c doc: Bump copyright year for 2020
Change-Id: I30539877543dc2a57bd1428a00d10ac46d8fc294
2020-01-08 09:13:24 -08:00

38 lines
928 B
JavaScript

/*!
* VisualEditor ContentEditable MWNowikiAnnotation class.
*
* @copyright 2011-2020 VisualEditor Team and others; see AUTHORS.txt
* @license The MIT License (MIT); see LICENSE.txt
*/
/**
* ContentEditable MediaWiki nowiki annotation.
*
* @class
* @extends ve.ce.Annotation
* @constructor
* @param {ve.dm.MWNowikiAnnotation} model Model to observe
* @param {Object} [config] Configuration options
*/
ve.ce.MWNowikiAnnotation = function VeCeMWNowikiAnnotation() {
// Parent constructor
ve.ce.MWNowikiAnnotation.super.apply( this, arguments );
// DOM changes
this.$element.addClass( 've-ce-mwNowikiAnnotation' );
};
/* Inheritance */
OO.inheritClass( ve.ce.MWNowikiAnnotation, ve.ce.Annotation );
/* Static Properties */
ve.ce.MWNowikiAnnotation.static.name = 'mwNowiki';
ve.ce.MWNowikiAnnotation.static.tagName = 'span';
/* Registration */
ve.ce.annotationFactory.register( ve.ce.MWNowikiAnnotation );