Add range method in editable

I think it'd be useful to have this for some components
Merge pull request #1034 from alicoding/range

Add range method in editable