Content before the editors.
ViewSource Plugin details
- The ViewSource plugin provides an extra button on the toolbar to allow switching the
editor from WSYIWYG editing to into HTML source mode editing in the browser.
This plugin is particularly useful when needing to tweak generated HTML source.
- The mode can also be toggled by entering the key command: CTRL-SHIFT-F12
in the editor pane.
- When it toggled it makes the edit area either a textarea if editing is enabled, or a readonly TEXTAREA node
if it is not editable.
- The plugin is aware of the FullScreen plugin, and when present will make sure that FullScreen knows which
node to make 'full'.
- The View Source adds in basic comment and script tag stripping by default (to help avoid XSS) attacks in code.
These can be disabled, but it is not recommended.
- While in view source mode, all other menu bar plugins are disabled.
Things to test:
- Verify that clicking the View Source icon highlights the button appropriately and toggles the view source mode on.
- Verify that clicking the View Source icon again dehighlites the button and toggles the view source mode off.
- Click in the editing pane and verify that CTRL-SHIFT-F12 toggles the view source mode on and off.
- Verify that when in View Source mode and comment and script tag stripping is enabled, that both inputs are removed when
toggled off.
ViewSource Plugin with FullScreen Plugin details
- The ViewSource plugin is FullScreen aware. It will should work appropriately when in full screen mode.
Things to test:
- Verify that while in Full Screen mode clicking the View Source icon highlights the button appropriately and toggles the
view source mode on and scales appropriately.
ViewSource Plugin with readOnly enabled details
- The ViewSource plugin supports a readonly mode. This should display the content but not allow any edits..
Things to test:
- Verify that while in View Source mode, the source cannot be edited.
ViewSource Plugin with script* disabled
- The ViewSource plugin supports disabling the script stripping, comment stripping, etc. This can be dangerous, but sometimes it is desirable.
Things to test:
- Verify that typed in script tags, comments, and iframes are left in the content when view switched.
Content after the editors.