mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-08-02 07:51:52 +02:00
* Progress on FSE class/integration
* Use "proxy" for submit * More key support... probably just missed it from other box, will merge later
This commit is contained in:
parent
6d49e5e55f
commit
6257208c5e
4 changed files with 150 additions and 90 deletions
|
@ -24,24 +24,27 @@ function MessageAreaPostModule(options) {
|
|||
|
||||
|
||||
this.initSequence = function() {
|
||||
var fse = new FullScreenEditor( {
|
||||
self.fse = new FullScreenEditor( {
|
||||
callingMenu : this,
|
||||
client : this.client,
|
||||
// :TODO: should pass in full config? want access to keymap/etc. as well
|
||||
art : this.menuConfig.config.fseArt,
|
||||
font : this.menuConfig.font,
|
||||
editorType : 'area',
|
||||
editorMode : 'edit',
|
||||
});
|
||||
|
||||
fse.on('error', function fseError(err) {
|
||||
|
||||
self.fse.on('error', function fseError(err) {
|
||||
console.log('fse error: ' + err)
|
||||
});
|
||||
|
||||
fse.enter();
|
||||
self.fse.enter();
|
||||
};
|
||||
|
||||
this.menuMethods = {
|
||||
// :TODO: is there a cleaner way to achieve this?
|
||||
fseSubmitProxy : function(formData, extraArgs) {
|
||||
console.log(formData)
|
||||
self.fse.submitHandler(formData, extraArgs);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue