Made buttons work in contenteditable

Almost.
Chrome and Safari work. Firefox will not position the cursor after an
html element unless a plain caharacter comes next.