Debian Codegraph @

dijit/tests/editor/BackForwardState.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 Back/Forward Button Test</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 "dojo/domReady!"
14 ], function(parser){
15 parser.parse();
16 });
17 </script>
18 </head>
19
20 <body class="claro" role="main">
21 <h1>Editor back/forward button value restore tests</h1>
22 <p>
23 Try typing something into the editors below, and then click the page refrsh link or the back then forward buttons.
24 The editor should not lose the value.
25 </p>
26 <p>Notes:</p>
27 <ol>
28 <li>Editor must have a "name" attribute for this to work (not sure why)
29 <li>If in XD mode must set dojo.config.allowXdRichTextSave or manually create the hidden
30 &lt;textarea&gt; node used to preserve the data.
31 </ol>
32 <p><a href="BackForwardStateHelper.html" id="away">Navigate to another page</a></p>
33
34 <div id="editor0" data-dojo-type="dijit/Editor" aria-label="editor0" data-dojo-props='name:"editor0", height:"100", plugins:[]'>editor0 original contents</div>
35 <div id="editor1" data-dojo-type="dijit/Editor" aria-label="editor1" data-dojo-props='name:"editor1", height:"100", plugins:[]'>editor1 original contents</div>
36 <textarea id="dijit._editor.RichText.value" style="display:none;position:absolute;top:-100px;left:-100px;height:3px;width:3px;overflow:hidden;"></textarea>
37 </body>
38 </html>