Fixed bug where inline editors would produce a range index exception when clicking on buttons like bold.