Debian Codegraph @

dijit/tests/editor/test_NewPage.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: New Page 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/NewPage",
14 "dojo/domReady!"
15 ], function(parser){
16 parser.parse();
17 });
18 </script>
19 </head>
20 <body class="claro" role="main">
21 <br>
22 <br>
23 <div>Content before the editor.</div>
24 <br>
25 <br>
26 <div id="editor0" data-dojo-type="dijit/Editor"
27 data-dojo-props='"aria-label":"editor0",extraPlugins:["newpage"], style:"background-color: white; width: 800px;", height:"400px" '>
28 <h1>New Page Plugin details</h1>
29 <ol>
30 <li>The new page plugin is a small plugin that adds the capability of making a 'new page'. In other words
31 replacing all the content of the editor with some default text. This also usually kills any undo that had been saved.</li>
32 </ol>
33
34 <h2>Things to test:</h2>
35 <ol>
36 <li>Verify that clicking the new page button clears the editor contents.</li>
37 </ol>
38 </div>
39 <br>
40 <br>
41 <div id="editor1" data-dojo-type="dijit/Editor"
42 data-dojo-props='"aria-label":"editor1",extraPlugins:[{name: "newpage", content: "&lt;p&gt;This page intentionally left blank&lt;/p&gt;"}], style:"background-color: white; width: 800px;", height:"400px" '>
43 <h1>New Page Plugin details</h1>
44 <ol>
45 <li>The new page plugin is a small plugin that adds the capability of making a 'new page'. In other words
46 replacing all the content of the editor with some default text. This also usually kills any undo that had been saved.</li>
47 </ol>
48
49 <h2>Things to test:</h2>
50 <ol>
51 <li>Verify that clicking the new page button sets the content to: &lt;p&gt;This page intentionally left blank&lt;/p&gt;</li>
52 </ol>
53 </div>
54 <br>
55 <br>
56 <div>Content after the editor.</div>
57 </body>
58 </html>