sheercms
Version:
Sheer Cliff CMS is a simple and powerful content management system (CMS) for Node JS.
28 lines (22 loc) • 615 B
JavaScript
/*
Sets the editor to the CKEditor
*/
var express = require('express');
var path_mod = require('path');
module.exports.init = function(server, done) {
//static files
var age = 86400000 * 7; //one day * 7
server.use('/cms/plugins/ckeditor', express.static(path_mod.join(__dirname, 'public'), { maxAge: age }));
done();
};
module.exports.getResources = function() {
return {
scripts: [
"/cms/plugins/ckeditor/ckeditor.js",
"/cms/plugins/ckeditor/ng-ckeditor.js"
],
styles: [
"/cms/plugins/ckeditor/styles.css"
]
};
};