* 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:
Bryan Ashby 2015-08-13 22:30:55 -06:00
parent 6d49e5e55f
commit 6257208c5e
4 changed files with 150 additions and 90 deletions

View file

@ -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);
}
};
}