Module ClassDef bases body FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str decorator_list decorator_list
N/A TextArea N/A N/A getCursorPos N/A N/A self N/A N/A N/A N/A JS 
        try {
            var elem = this['getElement']();
            var tr = elem['document']['selection']['createRange']();
            var tr2 = tr['duplicate']();
            tr2['moveToElementText'](elem);
            tr['setEndPoint']('EndToStart', tr2);
            return tr['text']['length'];
        }
        catch (e) {
            return 0;
        }
         N/A N/A