Debian Codegraph @

extensions/DiscussionTools/modules/dt-ve/dt.dm.MWSignatureNode.js

raw symbols SCIP
1 function DtDmMWSignatureNode() {
2 // Parent constructor
3 DtDmMWSignatureNode.super.apply( this, arguments );
4 }
5
6 OO.inheritClass( DtDmMWSignatureNode, ve.dm.MWSignatureNode );
7
8 DtDmMWSignatureNode.static.name = 'dtMwSignature';
9
10 // Match the special marker we use when switching from source to visual mode
11 DtDmMWSignatureNode.static.matchTagNames = [ 'span' ];
12
13 DtDmMWSignatureNode.static.matchRdfaTypes = null;
14
15 DtDmMWSignatureNode.static.matchFunction = function ( domElement ) {
16 return domElement.getAttribute( 'data-dtsignatureforswitching' ) !== null;
17 };
18
19 DtDmMWSignatureNode.static.toDataElement = function () {
20 return { type: 'dtMwSignature' };
21 };
22
23 ve.dm.modelRegistry.register( DtDmMWSignatureNode );
24
25 module.exports = DtDmMWSignatureNode;