dijit
Version:
Dijit provides a complete collection of user interface controls based on Dojo, giving you the power to create web applications that are highly optimized for usability, performance, internationalization, accessibility, but above all deliver an incredible u
45 lines (41 loc) • 1.37 kB
HTML
<html lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Editor Test: Print Plugin</title>
<script type="text/javascript" src="../boilerplate.js"></script>
<script type="text/javascript">
require([
"dojo/parser",
"dijit/Editor",
"dijit/_editor/plugins/Print",
"dojo/domReady!"
], function(parser){
parser.parse();
});
</script>
</head>
<body class="claro" role="main">
<br>
<br>
<div>Content before the editor.</div>
<br>
<br>
<div id="editor0" data-dojo-type="dijit/Editor"
data-dojo-props='"aria-label":"editor0",extraPlugins:["print"], style:"background-color: white; width: 800px;", height: "400px"'>
<h1>Print Plugin details</h1>
<ol>
<li>The print plugin is a small plugin that adds the capability of printing the document in the editor</li>
<li>If the underlying browser doesn't support print, then the button will be disabled by default</li>
</ol>
<h2>Things to test (manually, because of the print dialog, the function test cannot be automated):</h2>
<ol>
<li>Verify that clicking the print button opns the browser print dialog and the document will print.</li>
<li>Verify that the printed document is only the document in the editor, not the whole page.</li>
</ol>
</div>
<br>
<br>
<div>Content after the editor.</div>
</body>
</html>