Debian Codegraph @

dojox/editor/tests/editorBidiSupport.html

raw symbols SCIP
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="Content-type" content="text/html; charset=utf-8">
5 <title>Editor Test: BidiSupport Plugin</title>
6 <style type="text/css">
7 @import "../../../dojo/resources/dojo.css";
8 @import "../../../dijit/themes/claro/claro.css";
9 @import "../../../dijit/themes/claro/document.css";
10 @import "../../../dijit/themes/claro/Editor.css";
11 @import "../plugins/resources/css/BidiSupport.css";
12 </style>
13 <script type="text/javascript" src="../../../dojo/dojo.js"
14 data-dojo-config="parseOnLoad: false, async: true, isDebug: true"></script>
15
16 <script type="text/javascript">
17 require([
18 "dojo/parser",
19 "dijit/registry",
20 "dijit/Editor",
21 "dojox/editor/plugins/BidiSupport",
22 "dijit/_editor/plugins/FontChoice",
23 "dijit/_editor/plugins/ViewSource",
24 "dijit/_editor/plugins/EnterKeyHandling",
25 "dojox/editor/plugins/CollapsibleToolbar",
26 "dojo/domReady!"
27 ], function(parser, registry){
28 parser.parse();
29 registry.byId("startEditor").focus();
30 });
31 </script>
32 </head>
33 <body class="claro">
34 <h2 align="center">Editor Test: BidiSupport plugin</h2>
35 <table width="100%">
36 <tr style="padding: 0 0 20px 0"><td style="padding: 0 10px">
37 <h3 style="text-align: center;">LTR Editor with bidi buttons</h3><br/>
38 <div style="border: 1px dotted black;">
39 <div data-dojo-type="dijit/Editor" id="startEditor"
40 data-dojo-props='plugins: ["bold","italic","|","justifyLeft","justifyCenter","justifyRight","|","formatBlock"],
41 extraPlugins: ["|","insertOrderedList","insertUnorderedList","|","indent","outdent","|", "bidiSupport", "|",
42 "dijit/_editor/plugins/ViewSource"], height: "230px", disableSpellCheck:true'>
43 Type some text here.<br/>Select lines and push RTL or LTR button to change their direction.<br/>Use shortcut Ctrl+9 to change their direction to opposite.
44 </div>
45 </div>
46 </td><td style="padding: 0 10px; width: 50%">
47 <h3 style="text-align: center;">RTL Editor with bidi buttons</h3><br/>
48 <div style="border: 1px dotted black;">
49 <div data-dojo-type="dijit/Editor" dir="rtl"
50 data-dojo-props='plugins: ["bold","italic","|","justifyRight","justifyCenter","justifyLeft","|","formatBlock"],
51 extraPlugins: ["|","insertOrderedList","insertUnorderedList","|","indent","outdent","|", "bidiSupport", "|",
52 "dijit/_editor/plugins/ViewSource"], height: "230px", disableSpellCheck:true'>
53 Type some text here.<br/>Select lines and push RTL or LTR button to change their direction.<br/>Use shortcut Ctrl+9 to change their direction to opposite.
54 </div>
55 </div></td></tr>
56 <tr><td style="padding: 0 10px">
57 <h3 style="text-align: center;">LTR Editor with collapsible toolbar, without bidi buttons</h3><br/>
58 <div style="border: 1px dotted black;">
59 <div data-dojo-type="dijit/Editor"
60 data-dojo-props='plugins: ["bold","italic","|","justifyLeft","justifyCenter","justifyRight","|","formatBlock"],
61 extraPlugins: ["|","insertOrderedList","insertUnorderedList","|","indent","outdent","|",
62 {name: "dojox/editor/plugins/BidiSupport", shortcutonly: true},"|",
63 "dijit/_editor/plugins/ViewSource", "collapsibletoolbar"], height: "230px", disableSpellCheck:true'>
64 Type some text here.<br/>Select lines and use the following shortcuts:<br/>Ctrl+8 to change their direction to LTR, Ctrl+0 - to RTL, Ctrl+9 - to opposite.
65 </div>
66 </div>
67 </td><td style="padding: 0 10px">
68 <h3 style="text-align: center;">LTR Editor with blockMode "P"</h3><br/>
69 <div style="border: 1px dotted black;">
70 <div data-dojo-type="dijit/Editor"
71 data-dojo-props='plugins: ["bold","italic","|","justifyLeft","justifyCenter","justifyRight","|","formatBlock", "dijit/_editor/plugins/EnterKeyHandling"],
72 extraPlugins: ["|","insertOrderedList","insertUnorderedList","|","indent","outdent","|",
73 {name: "dojox/editor/plugins/BidiSupport", blockMode: "P"}, "|",
74 "dijit/_editor/plugins/ViewSource"], height: "230px", disableSpellCheck:true'>
75 Type some text here.<br/>Select lines and push RTL or LTR button to change their direction.<br/>Use shortcut Ctrl+9 to change their direction to opposite.
76 </div>
77 </div></td></tr>
78 </table>
79 </body>
80 </html>