Simple Online ExtJS Code Editor

By Vitaliy on June 15, 2012. ExtJS 4.1.0
9518
Write your code and press "Run Code".

Update: tab key enabled.

Js Code

{
    text: 'Run Code',
    handler: function () {
        var code = this.up('panel').down('#code').getValue();

        this.up('#code-editor').clearOutput();

        try {
            new Function(code)();
        } catch (e) {
            Ext.Msg.alert('Error', e.message);
        }
    }
}