Fixed problems with table and button highlighting.

-Table insertion on position of cursor
-Fixed problems in Chrome with highlighting text-align buttons