call_on_focused_field, modify_region: always give document for richedits
commitdc65a69f1b9740a48e726c93f60bc23e50ff784f
authorJohn Foerch <jjfoerch@earthlink.net>
Tue, 12 Oct 2010 20:08:39 +0000 (12 16:08 -0400)
committerJohn Foerch <jjfoerch@earthlink.net>
Tue, 12 Oct 2010 20:08:39 +0000 (12 16:08 -0400)
treedeb46b26975940bd6dae87d0ced7c59c5516486e
parent80dddad99d04052d9b1b05adfc452d097f329901
call_on_focused_field, modify_region: always give document for richedits

Have call_on_focused_field use the document for the field when the focused
element is a richedit node.  This makes more sense than passing the node
itself to the callback function because the node is not needed, and
sometimes there is no node.
modules/text.js