update cursor place for nested bold and span elements