* Switching back to module system for FSE... broken now, but hopefully this model sticks
This commit is contained in:
@@ -264,10 +264,10 @@
|
||||
]
|
||||
},
|
||||
"messageAreaNewPost" : {
|
||||
"module" : "msg_area_post",
|
||||
"module" : "msg_area_post_fse",
|
||||
"options" : { "cls" : true },
|
||||
"config" : {
|
||||
"fseArt" : {
|
||||
"art" : {
|
||||
"header" : "msg_area_post_header",
|
||||
"body" : "demo_fse_netmail_body.ans",
|
||||
"footerEdit" : "demo_fse_netmail_footer_edit.ans",
|
||||
|
||||
23
mods/msg_area_post_fse.js
Normal file
23
mods/msg_area_post_fse.js
Normal file
@@ -0,0 +1,23 @@
|
||||
/* jslint node: true */
|
||||
'use strict';
|
||||
|
||||
var FullScreenEditorModule = require('../core/fse.js').FullScreenEditorModule;
|
||||
|
||||
exports.getModule = AreaPostFSEModule;
|
||||
|
||||
exports.moduleInfo = {
|
||||
name : 'Message Area Post',
|
||||
desc : 'Module posting a new message to an area',
|
||||
author : 'NuSkooler',
|
||||
};
|
||||
|
||||
function AreaPostFSEModule(options) {
|
||||
FullScreenEditorModule.call(this, options);
|
||||
|
||||
// we're posting, so always start with 'edit' mode
|
||||
this.editorMode = 'edit';
|
||||
|
||||
}
|
||||
|
||||
require('util').inherits(AreaPostFSEModule, FullScreenEditorModule);
|
||||
|
||||
Reference in New Issue
Block a user