| 1 | <!DOCTYPE html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta http-equiv="Content-type" content="text/html; charset=utf-8"> |
| 5 | <title>Editor Test: ToggleDir Plugin</title> |
| 6 | |
| 7 | <script type="text/javascript" src="../boilerplate.js"></script> |
| 8 | |
| 9 | <script type="text/javascript"> |
| 10 | require([ |
| 11 | "dojo/parser", |
| 12 | "dijit/Editor", |
| 13 | "dijit/_editor/plugins/ToggleDir", |
| 14 | "dojo/domReady!" |
| 15 | ], function(parser){ |
| 16 | parser.parse(); |
| 17 | }); |
| 18 | </script> |
| 19 | </head> |
| 20 | <body class="claro" role="main"> |
| 21 | <h3 id="ltr_label">LTR Editor</h3> |
| 22 | <div id="ltr_ed" data-dojo-type="dijit/Editor" aria-labelledby="ltr_label" |
| 23 | data-dojo-props='extraPlugins:["dijit/_editor/plugins/ToggleDir"], height: 100'> |
| 24 | <ol><li>the toggleDir plugin provides an extra button to switch text direction (BiDi). Useful when right-to-left |
| 25 | languages are used with left-to-right languages.</li></ol> |
| 26 | </div> |
| 27 | |
| 28 | <h3 id="rtl_label">RTL Editor</h3> |
| 29 | <div id="rtl_ed" data-dojo-type="dijit/Editor" aria-labelledby="rtl_label" dir="rtl" |
| 30 | data-dojo-props='extraPlugins:["dijit/_editor/plugins/ToggleDir"], height: 100'> |
| 31 | <ol><li>the toggleDir plugin provides an extra button to switch text direction (BiDi). Useful when right-to-left |
| 32 | languages are used with left-to-right languages.</li></ol> |
| 33 | </div> |
| 34 | </body> |
| 35 | </html> |