mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-12-04 21:08:32 +00:00
26 lines
749 B
JavaScript
26 lines
749 B
JavaScript
|
function DtDmMWSignatureNode() {
|
||
|
// Parent constructor
|
||
|
DtDmMWSignatureNode.super.apply( this, arguments );
|
||
|
}
|
||
|
|
||
|
OO.inheritClass( DtDmMWSignatureNode, ve.dm.MWSignatureNode );
|
||
|
|
||
|
DtDmMWSignatureNode.static.name = 'dtMwSignature';
|
||
|
|
||
|
// Match the special marker we use when switching from source to visual mode
|
||
|
DtDmMWSignatureNode.static.matchTagNames = [ 'span' ];
|
||
|
|
||
|
DtDmMWSignatureNode.static.matchRdfaTypes = null;
|
||
|
|
||
|
DtDmMWSignatureNode.static.matchFunction = function ( domElement ) {
|
||
|
return domElement.getAttribute( 'data-dtsignatureforswitching' ) !== null;
|
||
|
};
|
||
|
|
||
|
DtDmMWSignatureNode.static.toDataElement = function () {
|
||
|
return { type: 'dtMwSignature' };
|
||
|
};
|
||
|
|
||
|
ve.dm.modelRegistry.register( DtDmMWSignatureNode );
|
||
|
|
||
|
module.exports = DtDmMWSignatureNode;
|