ingenta-lens
Version:
A novel way of seeing content.
49 lines (38 loc) • 970 B
JavaScript
;
var Document = require('../../../substance/document');
var DocumentNode = Document.Node;
var Paragraph = require('../paragraph').Model;
var Composite = Document.Composite;
var Footnote = function(node, document) {
Composite.call(this, node, document);
};
Footnote.type = {
"id": "footnote",
"parent": "paragraph",
"properties": {
"footnoteType": "string",
"specificUse": "string",
"label": "string",
"children": ["array", "string"]
}
};
// Example
// -------
//
Footnote.example = {
"type": "footnote",
"id": "footnote_1",
"label": "a",
"children ": [
"text_1",
"image_1",
"text_2"
]
};
Footnote.Prototype = function() {
};
Footnote.Prototype.prototype = Paragraph.prototype;
Footnote.prototype = new Footnote.Prototype();
Footnote.prototype.constructor = Footnote;
DocumentNode.defineProperties(Footnote.prototype, ["children", "label", "footnoteType", "specificUse"]);
module.exports = Footnote;