Location: A review of cardiac cellular electrophysiology models @ f6a8f9030738 / dojo-presentation / js / dojo / dijit / tests / test_Editor.html
- Author:
- David Nickerson <nickerso@users.sourceforge.net>
- Date:
- 2009-07-16 02:00:03+12:00
- Desc:
- the starting point for the HH tutorial example
- Permanent Source URI:
- https://models.fieldml.org/workspace/a1/rawfile/f6a8f90307388eb4b040ee3566b84d88b59247f7/dojo-presentation/js/dojo/dijit/tests/test_Editor.html
Automated Test - all check boxes should be checked
Focus:
Value:
Change:
Blur:
Disabled:
Editor + Plugins Test
Created from div
This instance is created from a div directly with default toolbar and plugins
The following HTML should appear as source: <INPUT TYPE="IMAGE" SRC="javascript:alert('no scripting attacks')">Created from div, auto-expanding
thud - from div
This editor is created from a div with AlwaysShowToolbar plugin (do not forget to set height="").
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean semper sagittis velit. Cras in mi. Duis porta mauris ut ligula. Proin porta rutrum lacus. Etiam consequat scelerisque quam. Nulla facilisi. Maecenas luctus venenatis nulla. In sit amet dui non mi semper iaculis. Sed molestie tortor at ipsum. Morbi dictum rutrum magna. Sed vitae risus.
The following HTML should appear as source: <INPUT TYPE="IMAGE" SRC="javascript:alert('no scripting attacks')">..after
Optional toolbar buttons
blah entry
This instance includes optional toolbar buttons which pull in additional ui (dijit) code.
Note the dojo.require() statements required to pull in the associated editor plugins to make
this work.
This is serif.
This is sans-serif.
This is monospace.
This is cursive.
This is fantasy.
This is serif.
This is sans-serif.
This is monospace.
This is cursive.
This is fantasy.
..after
getValuePlugins specified
Another blah entry
This instance demos how to:
- specify which plugins to load (see the plugins property): this instance loads EnterKeyHandling plugin, among others;
- specify options for a plugin (see the last item in the plugins array)
..after
Programmatic creation
This div will become an editor.
create static editor
This div will become an auto-expanding editor.
create expanding editor