Fixing https://dev.ckeditor.com/ticket/10633

This fix determines the direction of the text in the Paste dialog and inserts a san with the same direction in the CKEditor. 

It fixes the bug : https://dev.ckeditor.com/ticket/10633