How to make PrimeFace's Editor Right To Left
Is it possible to make the PrimeFaces's Editor component, right to left? It seems not to 开发者_C百科support dir and style attributes... :(
in my experience controls in jsf framework like prime/open/etc.. don't support RTL using html @dir, usually the interfaces of these controls are built using Javascript, so probably you should work at that level. Can I suggest you to consider two other alternatives to jsf controls in this case?:
- Using a javascript html editor (like elrte, maybe is easier to customize and it has also Arabic translation). http://elrte.org/
- Using the Flex html editor (is Flash, if you can, and Flex support RTL for all controls)
F.
Just bumped into this thread by accident,
anyway I remember that i did the RTL with jquery like this:
<script type="text/javascript">
jQuery(document).ready(function($) {
$("j_idt33:inputtextlist").contents().find('html').attr('dir', 'rtl');
});
had to find the id with firebug , inputtextlist was the id i gave to the editor , and ypu can always use a smarter jquery selector (with suffix match)
精彩评论