| 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: FullScreen 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/FullScreen", |
| 14 | "dijit/_editor/plugins/ViewSource", |
| 15 | "dijit/layout/BorderContainer", |
| 16 | "dijit/layout/AccordionContainer", |
| 17 | "dijit/layout/StackContainer", |
| 18 | "dijit/layout/TabContainer", |
| 19 | "dijit/layout/ContentPane", |
| 20 | "dojo/domReady!" |
| 21 | ], function(parser){ |
| 22 | parser.parse(); |
| 23 | }); |
| 24 | </script> |
| 25 | </head> |
| 26 | <body class="claro" role="main"> |
| 27 | <br> |
| 28 | <br> |
| 29 | <div>Content before the editor.</div> |
| 30 | <br> |
| 31 | <br> |
| 32 | <div id="editor0" data-dojo-type="dijit/Editor" |
| 33 | data-dojo-props='"aria-label":"editor0", extraPlugins:["fullscreen"], style:"background-color: white; width: 800px; height: 400px;" '> |
| 34 | <h1>Full Screen Plugin details</h1> |
| 35 | <ol> |
| 36 | <li>The Fullscreen plugin provides an extra button on the toolbar to allow switching the |
| 37 | editor into 'full screen' mode, meaning the editor takes over the viewport of the |
| 38 | browser. This plugin is particularly useful when editing large documents.</li> |
| 39 | <li>The mode can also be toggled by entering the key command: CTRL-SHIFT-F11 |
| 40 | in the editor pane.</li> |
| 41 | <li>When it toggled to full screen, it makes |
| 42 | the editor text pane opaque white so that the contents behind it are not visible.</li> |
| 43 | <li>When in full screen mode, the plugin attempts to capture the TAB key and allow navigation only between |
| 44 | the editor toolbar and the editing area, as when in full screen mode, the rest of the page is hidden |
| 45 | behind the editor.</li> |
| 46 | </ol> |
| 47 | |
| 48 | <h2>Things to test:</h2> |
| 49 | <ol> |
| 50 | <li>Verify that clicking the full screen icon highlights the button appropriately and toggles the full screen mode on.</li> |
| 51 | <li>Verify that clicking the full screen icon again dehighlites the button and toggles the full screen mode off.</li> |
| 52 | <li>Click in the editing pane and verify that CTRL-SHIFT-F11 toggles the full screen mode on and off.</li> |
| 53 | <li>Verify while in full screen mode that TAB seems to behave appropriately. Please note that FireFox and Internet |
| 54 | Explorer work the best here. There are still a few tab control issues in Safari and Chrome.</li> |
| 55 | </ol> |
| 56 | </div> |
| 57 | <br> |
| 58 | <br> |
| 59 | <div>Content after the editor.</div> |
| 60 | <br> |
| 61 | <h1>BorderContainer with center region containing editor.</h1> |
| 62 | <div id="bc" data-dojo-type="dijit/layout/BorderContainer" data-dojo-props='style:"width: 600px; height: 500px;"'> |
| 63 | <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props='region:"left", style:"width: 50px;"'>left</div> |
| 64 | <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props='region:"top", style:"height: 50px;"'>top</div> |
| 65 | <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props='region:"right", style:"width: 50px;"'>right</div> |
| 66 | <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props='region:"bottom", style:"height: 50px;"'>bottom</div> |
| 67 | <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props='region:"center"'> |
| 68 | <div id="editor1" data-dojo-type="dijit/Editor" data-dojo-props='"aria-label":"editor1", extraPlugins:["fullscreen","viewsource"], height:"100%"'> |
| 69 | <h1>Full Screen Plugin details</h1> |
| 70 | <ol> |
| 71 | <li>The Fullscreen plugin provides an extra button on the toolbar to allow switching the |
| 72 | editor into 'full screen' mode, meaning the editor takes over the viewport of the |
| 73 | browser. This plugin is particularly useful when editing large documents.</li> |
| 74 | <li>The mode can also be toggled by entering the key command: CTRL-SHIFT-F11 |
| 75 | in the editor pane.</li> |
| 76 | <li>When it toggled to full screen, it makes |
| 77 | the editor text pane opaque white so that the contents behind it are not visible.</li> |
| 78 | <li>When in full screen mode, the plugin attempts to capture the TAB key and allow navigation only between |
| 79 | the editor toolbar and the editing area, as when in full screen mode, the rest of the page is hidden |
| 80 | behind the editor.</li> |
| 81 | </ol> |
| 82 | |
| 83 | <h2>Things to test:</h2> |
| 84 | <ol> |
| 85 | <li>Verify that clicking the full screen icon highlights the button appropriately and toggles the full screen mode on.</li> |
| 86 | <li>Verify that clicking the full screen icon again dehighlites the button and toggles the full screen mode off.</li> |
| 87 | <li>Click in the editing pane and verify that CTRL-SHIFT-F11 toggles the full screen mode on and off.</li> |
| 88 | <li>Verify while in full screen mode that TAB seems to behave appropriately. Please note that FireFox and Internet |
| 89 | Explorer work the best here. There are still a few tab control issues in Safari and Chrome.</li> |
| 90 | </ol> |
| 91 | </div> |
| 92 | </div> |
| 93 | </div> |
| 94 | <br> |
| 95 | <h1>TabContainer with tab containing editor.</h1> |
| 96 | <div id="tc" data-dojo-type="dijit/layout/TabContainer" data-dojo-props='style:"width: 600px; height: 500px; border-style: solid; border-width: 1px; padding: 0px; margin: 0px;"'> |
| 97 | <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props='title:"Editor Tab"'> |
| 98 | <div id="editor2" data-dojo-type="dijit/Editor" data-dojo-props='"aria-label":"editor2", extraPlugins:["fullscreen","viewsource"], height:"100%"'> |
| 99 | <h1>Full Screen Plugin details</h1> |
| 100 | <ol> |
| 101 | <li>The Fullscreen plugin provides an extra button on the toolbar to allow switching the |
| 102 | editor into 'full screen' mode, meaning the editor takes over the viewport of the |
| 103 | browser. This plugin is particularly useful when editing large documents.</li> |
| 104 | <li>The mode can also be toggled by entering the key command: CTRL-SHIFT-F11 |
| 105 | in the editor pane.</li> |
| 106 | <li>When it toggled to full screen, it makes |
| 107 | the editor text pane opaque white so that the contents behind it are not visible.</li> |
| 108 | <li>When in full screen mode, the plugin attempts to capture the TAB key and allow navigation only between |
| 109 | the editor toolbar and the editing area, as when in full screen mode, the rest of the page is hidden |
| 110 | behind the editor.</li> |
| 111 | </ol> |
| 112 | |
| 113 | <h2>Things to test:</h2> |
| 114 | <ol> |
| 115 | <li>Verify that clicking the full screen icon highlights the button appropriately and toggles the full screen mode on.</li> |
| 116 | <li>Verify that clicking the full screen icon again dehighlites the button and toggles the full screen mode off.</li> |
| 117 | <li>Click in the editing pane and verify that CTRL-SHIFT-F11 toggles the full screen mode on and off.</li> |
| 118 | <li>Verify while in full screen mode that TAB seems to behave appropriately. Please note that FireFox and Internet |
| 119 | Explorer work the best here. There are still a few tab control issues in Safari and Chrome.</li> |
| 120 | </ol> |
| 121 | </div> |
| 122 | </div> |
| 123 | <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props='title:"Blank Tab 1"'> |
| 124 | </div> |
| 125 | <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props='title:"Blank Tab 2"'> |
| 126 | </div> |
| 127 | <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props='title:"Blank Tab 3"'> |
| 128 | </div> |
| 129 | </div> |
| 130 | <br> |
| 131 | <h1>AccordionContainer with pane containing editor.</h1> |
| 132 | <div id="ac" data-dojo-type="dijit/layout/AccordionContainer" data-dojo-props='style:"width: 600px; height: 500px; border-style: solid; border-width: 1px; padding: 0px; margin: 0px;"'> |
| 133 | <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props='title:"Editor Pane"'> |
| 134 | <div id="editor3" data-dojo-type="dijit/Editor" data-dojo-props='"aria-label":"editor3", extraPlugins:["fullscreen","viewsource"], height:"100%"'> |
| 135 | <h1>Full Screen Plugin details</h1> |
| 136 | <ol> |
| 137 | <li>The Fullscreen plugin provides an extra button on the toolbar to allow switching the |
| 138 | editor into 'full screen' mode, meaning the editor takes over the viewport of the |
| 139 | browser. This plugin is particularly useful when editing large documents.</li> |
| 140 | <li>The mode can also be toggled by entering the key command: CTRL-SHIFT-F11 |
| 141 | in the editor pane.</li> |
| 142 | <li>When it toggled to full screen, it makes |
| 143 | the editor text pane opaque white so that the contents behind it are not visible.</li> |
| 144 | <li>When in full screen mode, the plugin attempts to capture the TAB key and allow navigation only between |
| 145 | the editor toolbar and the editing area, as when in full screen mode, the rest of the page is hidden |
| 146 | behind the editor.</li> |
| 147 | </ol> |
| 148 | |
| 149 | <h2>Things to test:</h2> |
| 150 | <ol> |
| 151 | <li>Verify that clicking the full screen icon highlights the button appropriately and toggles the full screen mode on.</li> |
| 152 | <li>Verify that clicking the full screen icon again dehighlites the button and toggles the full screen mode off.</li> |
| 153 | <li>Click in the editing pane and verify that CTRL-SHIFT-F11 toggles the full screen mode on and off.</li> |
| 154 | <li>Verify while in full screen mode that TAB seems to behave appropriately. Please note that FireFox and Internet |
| 155 | Explorer work the best here. There are still a few tab control issues in Safari and Chrome.</li> |
| 156 | </ol> |
| 157 | </div> |
| 158 | </div> |
| 159 | <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props='title:"Blank Pane 1"'> |
| 160 | </div> |
| 161 | <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props='title:"Blank Pane 2"'> |
| 162 | </div> |
| 163 | <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props='title:"Blank Pane 3"'> |
| 164 | </div> |
| 165 | </div> |
| 166 | <br> |
| 167 | <h1>StackContainer with pane containing editor.</h1> |
| 168 | <div id="sc" data-dojo-type="dijit/layout/StackContainer" data-dojo-props='style:"width: 600px; height: 500px; border-style: solid; border-width: 1px; padding: 0px; margin: 0px;"'> |
| 169 | <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props='title:"Editor Pane"'> |
| 170 | <div id="editor4" data-dojo-type="dijit/Editor" data-dojo-props='"aria-label":"editor4", extraPlugins:["fullscreen","viewsource"], height:"100%"'> |
| 171 | <h1>Full Screen Plugin details</h1> |
| 172 | <ol> |
| 173 | <li>The Fullscreen plugin provides an extra button on the toolbar to allow switching the |
| 174 | editor into 'full screen' mode, meaning the editor takes over the viewport of the |
| 175 | browser. This plugin is particularly useful when editing large documents.</li> |
| 176 | <li>The mode can also be toggled by entering the key command: CTRL-SHIFT-F11 |
| 177 | in the editor pane.</li> |
| 178 | <li>When it toggled to full screen, it makes |
| 179 | the editor text pane opaque white so that the contents behind it are not visible.</li> |
| 180 | <li>When in full screen mode, the plugin attempts to capture the TAB key and allow navigation only between |
| 181 | the editor toolbar and the editing area, as when in full screen mode, the rest of the page is hidden |
| 182 | behind the editor.</li> |
| 183 | </ol> |
| 184 | |
| 185 | <h2>Things to test:</h2> |
| 186 | <ol> |
| 187 | <li>Verify that clicking the full screen icon highlights the button appropriately and toggles the full screen mode on.</li> |
| 188 | <li>Verify that clicking the full screen icon again dehighlites the button and toggles the full screen mode off.</li> |
| 189 | <li>Click in the editing pane and verify that CTRL-SHIFT-F11 toggles the full screen mode on and off.</li> |
| 190 | <li>Verify while in full screen mode that TAB seems to behave appropriately. Please note that FireFox and Internet |
| 191 | Explorer work the best here. There are still a few tab control issues in Safari and Chrome.</li> |
| 192 | </ol> |
| 193 | </div> |
| 194 | </div> |
| 195 | <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props='title:"Blank Pane 1"'> |
| 196 | </div> |
| 197 | <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props='title:"Blank Pane 2"'> |
| 198 | </div> |
| 199 | <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props='title:"Blank Pane 3"'> |
| 200 | </div> |
| 201 | </div> |
| 202 | </body> |
| 203 | </html> |