UNPKG

landmark-serve

Version:

Web Application Framework and Admin GUI / Content Management System built on Express.js and Mongoose

40 lines (26 loc) 572 B
/*! * Module dependencies. */ var util = require('util'), super_ = require('../field'); /** * HTML FieldType Constructor * @extends Field * @api public */ function html(list, path, options) { this._nativeType = String; // TODO: implement filtering, usage disabled for now options.nofilter = true; this.wysiwyg = (options.wysiwyg) ? true : false; this.height = options.height || 180; html.super_.call(this, list, path, options); } /*! * Inherit from Field */ util.inherits(html, super_); /*! * Export class */ exports = module.exports = html;