Editor RTL fixes

A few RTL fixes for the editor.

Needs @khaledhosny's input.

This replaces #305 that I messed up.