changes for bugNumber 10986 - Setting text direction to content within CKEditor dialogs

Following your recommendation, the code was moved to dialog plugin.
The solution serves dialogs which activate the dialog plugin's commit and setup events (meaning, the solution will not work for Image, ImageButton and Anchor dialogs).
Files table.js, button.js and form.js demonstrate the use of this functionality simply by adding the bidi attribute.