Moved code into rangyinputs.js from cb-inline-edit.js to separate code as it has separate MIT license.