2013-07-17 01:22:22 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor ContentEditable MWNowikiAnnotation class.
|
|
|
|
*
|
2020-01-08 17:13:04 +00:00
|
|
|
* @copyright 2011-2020 VisualEditor Team and others; see AUTHORS.txt
|
2013-07-17 01:22:22 +00:00
|
|
|
* @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
|
2013-09-25 10:21:09 +00:00
|
|
|
* @param {Object} [config] Configuration options
|
2013-07-17 01:22:22 +00:00
|
|
|
*/
|
2016-08-22 21:44:59 +00:00
|
|
|
ve.ce.MWNowikiAnnotation = function VeCeMWNowikiAnnotation() {
|
2013-07-17 01:22:22 +00:00
|
|
|
// Parent constructor
|
2016-08-22 21:44:59 +00:00
|
|
|
ve.ce.MWNowikiAnnotation.super.apply( this, arguments );
|
2013-07-17 01:22:22 +00:00
|
|
|
|
|
|
|
// DOM changes
|
2013-11-01 19:45:59 +00:00
|
|
|
this.$element.addClass( 've-ce-mwNowikiAnnotation' );
|
2013-07-17 01:22:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* Inheritance */
|
|
|
|
|
2013-10-11 21:44:09 +00:00
|
|
|
OO.inheritClass( ve.ce.MWNowikiAnnotation, ve.ce.Annotation );
|
2013-07-17 01:22:22 +00:00
|
|
|
|
|
|
|
/* Static Properties */
|
|
|
|
|
|
|
|
ve.ce.MWNowikiAnnotation.static.name = 'mwNowiki';
|
|
|
|
|
|
|
|
ve.ce.MWNowikiAnnotation.static.tagName = 'span';
|
|
|
|
|
|
|
|
/* Registration */
|
|
|
|
|
|
|
|
ve.ce.annotationFactory.register( ve.ce.MWNowikiAnnotation );
|