Debian Codegraph @

dijit/tests/editor/test_bidiEditor.html

raw symbols SCIP
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</title>
6
7 <script type="text/javascript" src="../boilerplate.js"
8 data-dojo-config="parseOnLoad: false, has: {'dojo-bidi': true}">
9 </script>
10
11
12 <script type="text/javascript">
13 require([
14 "dojo/_base/declare",
15 "dojo/parser", // scan page for widgets and instantiate them
16 "dijit/Editor",
17 "dojo/domReady!"
18 ], function(declare, parser, Editor){
19
20 parser.parse();
21
22 var editor1 = new Editor({
23 dir: 'ltr',
24 textDir: 'rtl',
25 height: '75px',
26 value: ''
27 }, "prog1");
28 editor1.startup();
29
30 var editor2 = new Editor({
31 dir: 'rtl',
32 textDir: 'ltr',
33 height: '75px',
34 value: ''
35 }, "prog2");
36 editor2.startup();
37 });
38
39 </script>
40 </head>
41
42 <body class="claro" role="main">
43 <h1 class="testTitle">Editor GUI orientation and default text direction Test</h1>
44 <h2 class="testTitle" style="text-align: center;">Created from div.</h2>
45 <table width='100%'>
46 <tr><td width='49%' dir='ltr'>
47 <div data-dojo-type="dijit/Editor"
48 data-dojo-props="styleSheets:'../../themes/claro/document.css', height:'70px'"
49 id="ed1">
50 </div>
51 </td>
52 <td width='2%'></td>
53 <td dir='rtl'>
54 <div data-dojo-type="dijit/Editor"
55 data-dojo-props="styleSheets:'../../themes/claro/document.css', height:'70px'"
56 id="ed2">
57 </div>
58 </td></tr>
59 <tr><td width='49%'>
60 <div data-dojo-type="dijit/Editor"
61 data-dojo-props="styleSheets:'../../themes/claro/document.css', height:'70px', dir: 'ltr', textDir: 'rtl'"
62 id="ed3">
63 </div>
64 </td>
65 <td width='2%'></td>
66 <td>
67 <div data-dojo-type="dijit/Editor"
68 data-dojo-props="styleSheets:'../../themes/claro/document.css', height:'70px', dir: 'rtl', textDir: 'ltr'"
69 id="ed4">
70 </div>
71 </td></tr>
72 </table>
73
74 <h2 class="testTitle" style="text-align: center;">Programmatic creation.</h2>
75 <table width='100%'>
76 <tr><td width='49%'>
77 <div id="prog1">This div will become a programmatic editor in addOnLoad.</div>
78 </td>
79 <td width='2%'></td>
80 <td>
81 <div id="prog2">This div will become a programmatic editor in addOnLoad.</div>
82 </td></tr>
83 </table>
84 </body>
85 </html>