Changeset 11801
- Timestamp:
- 12/12/07 04:39:21 (7 months ago)
- Files:
-
- 1 modified
-
dijit/trunk/tests/test_Editor.html (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dijit/trunk/tests/test_Editor.html
r11778 r11801 28 28 <h1 class="testTitle"><label for="editor1">Editor + Plugins Test</label></h1> 29 29 30 <h2>Created from div</h2> 30 31 <div style="border: 1px solid black;"> 31 32 <div dojoType="dijit.Editor" id="editor1"><p>This instance is created from a div directly with default toolbar and plugins</p></div> … … 34 35 <button onclick="console.log(dijit.byId('editor1').getValue().length)">getValue</button> 35 36 <hr/> 37 38 <h2>Created from textarea,auto-expanding</h2> 36 39 <div style="border: 1px dotted black;"> 37 40 <h3><label for="thud">thud - from textarea</label></h3> … … 54 57 </div> 55 58 <hr/> 59 60 <h2>Optional toolbar buttons</h2> 56 61 <div style="border: 1px dotted black;"> 57 62 <h3><label for="blah">blah entry</label></h3> … … 66 71 </div> 67 72 <hr/> 73 74 <h2>Plugins specified</h2> 68 75 <div style="border: 1px dotted black;"> 69 76 <h3><label for="blah2">Another blah entry</label></h3> … … 79 86 <h3>..after</h3> 80 87 </div> 88 <hr/> 89 90 <h2>Programmatic creation</h2> 91 <div id="programmatic">This div will become an editor.</div> 92 <button 93 id="create" 94 onclick="new dijit.Editor({}, dojo.byId('programmatic')); dojo.query('#create').orphan();"> 95 create static editor 96 </button> 97 <div id="programmatic2">This div will become an auto-expanding editor.</div> 98 <button 99 id="create2" 100 onclick="new dijit.Editor({height: '', extraPlugins: ['dijit._editor.plugins.AlwaysShowToolbar']}, dojo.byId('programmatic2')); dojo.query('#create2').orphan();"> 101 create expanding editor 102 </button> 81 103 </body> 82 104 </html>