Wysiwyg PreElement Fix is a wysiwyg editor plugin that enables the preelementfix plugin for TinyMCE. This plugin tries to fix some issues with TinyMCE's handling of the PRE element. It is especially useful when trying to integrate the SyntaxHighlighter module into TinyMCE.
This plugin addresses the following issues with the
element within TinyMCE:
Enter key:
MSIE and WebKit creates a new sibling PRE element each time the users hits enter.
Opera and Firefox creates a BR element.
Tab key:
When pressing the tab key in Firefox nothing happens.
WebKit creates a tab char inside a span element.
The plugin makes addresses these issues by making pre elements:
Preserve white space.
Contain no X/HTML child nodes.
Do not create a new sibling PRE elements when the enter key is pressed.
Tab key should create a tab character. This is just nice to have and since MISE handles this other should to :).