Faisal Posted August 10, 2014 Share Posted August 10, 2014 Hi all Adding "rtl" Right to Left support to the template have no problem rather the website is RTL only or RTL and LTR. *with a lot of ways But when it comes to the TinyMCE, If the website is RTL only it's no problem according to http://www.tinymce.com/wiki.php/Configuration3x:directionality So in file: /wire/modules/Inputfield/InputfieldTinyMCE/InputfieldTinyMCE.js In the InputfieldTinyMCEConfigDefaults I just add directionality : "rtl", But what If I use multi language, English (ltr) and Arabic (rtl) ?!! I want the English body filed to show the editor ltr (default display) and the Arabic rtl (showing the content from Right to Left for easy editing) This screenshot show what is the final result must be: Its the same problem in CKEditor here Link to comment Share on other sites More sharing options...
Torsten17 Posted July 29, 2016 Share Posted July 29, 2016 Hello Faisal, i have the same problem, that i want to enter arabic text with RTL support, and english text with LTR. Did you find any solution to this? Link to comment Share on other sites More sharing options...
adrian Posted July 29, 2016 Share Posted July 29, 2016 @Torsten - welcome to the forums. Firstly, PW no longer uses TinyMCE by default - it now uses CKEditor. Here is a post on how to set up RTL for CkEditor: Hope that helps. 3 Link to comment Share on other sites More sharing options...
Torsten17 Posted July 29, 2016 Share Posted July 29, 2016 Hello Adrian, thank you, the BiDi addon works well. I also modified file /wire/templates_admin/default.php: <html lang="<?php echo __('en', __FILE__); // HTML tag lang attribute /* this intentionally on a separate line */ ?>" dir="<?php echo __('ltr'); // HTML tag text direction ltr or rtl /* this intentionally on a separate line */ ?>"> Now i can set text direction in the file translation. Users with arabic language will get RTL support in the admin page too. Perhaps this could be PW standard. Regards Torsten 1 Link to comment Share on other sites More sharing options...
adrian Posted July 29, 2016 Share Posted July 29, 2016 Glad that helped @Torsten17 I am not someone who deals with multilanguage, but your suggestion sounds good to me, although I would have thought you'd want a double underscore to make the "dir" translatable? It might be best to make this suggestion in a Github issue so it gets Ryan's attention. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now