#### Editors - WYSIHTML5

Statistics Invoices Schedule

##### Simple toolbar

The following example demonstrates WYSIHTML5 editor with `simplified` toolbar. Since browsers use a default style sheet to style elements, so if you use `b`, `i`, `ul` and `li`, there is already some styling visible in the editor. Please note: The textarea will always hold the editor's generated markup. Therefore wysihtml5 integrates smoothly with forms.

<h1>WYSIHTML5 - A better approach to rich text editing</h1> <p>wysihtml5 is an <span class="wysiwyg-color-green"><a rel="nofollow" target="_blank" href="https://github.com/xing/wysihtml5">open source</a></span> rich text editor based on HTML5 technology and the progressive-enhancement approach. It uses a sophisticated security concept and aims to generate fully valid HTML5 markup by preventing unmaintainable tag soups and inline styles.</p> <h2>Features</h2> <ul> <li>It's fast and lightweight (smaller than TinyMCE, Aloha, ...)</li> <li>Auto-linking of urls as-you-type</li> <li>Generates valid and semantic HTML5 markup (even when the content is pasted from MS Word)</li> <li>Uses class names instead of inline styles</li> <li>Unifies line break handling across browsers</li> <li>Uses sandboxed iframes in order to prevent identity theft through XSS</li> <li>Speech-input for Chrome</li> </ul> <h2>Browser Support</h2> <ul> <li><img width="24" alt="" src="http://xing.github.com/wysihtml5/img/icn_firefox.png" height="24"> Firefox 3.5+</li> <li><img width="24" alt="" src="http://xing.github.com/wysihtml5/img/icn_chrome.png" height="24"> Chrome</li> <li><img width="24" alt="" src="http://xing.github.com/wysihtml5/img/icn_internet_explorer.png" height="24"> IE 8+</li> <li><img width="24" alt="" src="http://xing.github.com/wysihtml5/img/icn_safari.png" height="24"> Safari 4+</li> <li><img width="24" alt="" src="http://xing.github.com/wysihtml5/img/icn_ios.png" height="24"> Safari on iOS 5+</li> <li><img width="24" alt="" src="http://xing.github.com/wysihtml5/img/icn_opera.png" height="24"> Opera 11+</li> <li><strong>Graceful degradation:</strong> Unsupported browsers will get a textarea</li> </ul>

##### Full featured editor

WYSIHTML55 takes a textarea and transforms it into a rich text editor. The textarea acts as a fallback for unsupported browsers (eg. IE < 8). Make sure the textarea element has an `id`, so we can later access it easily from javascript. The resulting rich text editor will much behave and look like the textarea since behavior (placeholder, autofocus, ...) and css styles will be copied over.

<h1>WYSIHTML5 - A better approach to rich text editing</h1> <p>wysihtml5 is an <span class="wysiwyg-color-green"><a rel="nofollow" target="_blank" href="https://github.com/xing/wysihtml5">open source</a></span> rich text editor based on HTML5 technology and the progressive-enhancement approach. It uses a sophisticated security concept and aims to generate fully valid HTML5 markup by preventing unmaintainable tag soups and inline styles.</p> <h2>Features</h2> <ul> <li>It's fast and lightweight (smaller than TinyMCE, Aloha, ...)</li> <li>Auto-linking of urls as-you-type</li> <li>Generates valid and semantic HTML5 markup (even when the content is pasted from MS Word)</li> <li>Uses class names instead of inline styles</li> <li>Unifies line break handling across browsers</li> <li>Uses sandboxed iframes in order to prevent identity theft through XSS</li> <li>Speech-input for Chrome</li> </ul> <h2>Browser Support</h2> <ul> <li><img width="24" alt="" src="http://xing.github.com/wysihtml5/img/icn_firefox.png" height="24"> Firefox 3.5+</li> <li><img width="24" alt="" src="http://xing.github.com/wysihtml5/img/icn_chrome.png" height="24"> Chrome</li> <li><img width="24" alt="" src="http://xing.github.com/wysihtml5/img/icn_internet_explorer.png" height="24"> IE 8+</li> <li><img width="24" alt="" src="http://xing.github.com/wysihtml5/img/icn_safari.png" height="24"> Safari 4+</li> <li><img width="24" alt="" src="http://xing.github.com/wysihtml5/img/icn_ios.png" height="24"> Safari on iOS 5+</li> <li><img width="24" alt="" src="http://xing.github.com/wysihtml5/img/icn_opera.png" height="24"> Opera 11+</li> <li><strong>Graceful degradation:</strong> Unsupported browsers will get a textarea</li> </ul>

##### WYSIHTML5 events

The following example demonstrates examples of some events available. To capture other events that occur within the Wysihtml editor’s iframe, make sure that the wysihtml iframe is fully loaded before registering events, otherwise results may vary across browsers. One way to ensure that the iframe is fully loaded is to define functions like the above as a callback on the editor’s `load` function.

<h1>WYSIHTML5 - A better approach to rich text editing</h1> <p>wysihtml5 is an <span class="wysiwyg-color-green"><a rel="nofollow" target="_blank" href="https://github.com/xing/wysihtml5">open source</a></span> rich text editor based on HTML5 technology and the progressive-enhancement approach. It uses a sophisticated security concept and aims to generate fully valid HTML5 markup by preventing unmaintainable tag soups and inline styles.</p> <h2>Features</h2> <ul> <li>It's fast and lightweight (smaller than TinyMCE, Aloha, ...)</li> <li>Auto-linking of urls as-you-type</li> <li>Generates valid and semantic HTML5 markup (even when the content is pasted from MS Word)</li> <li>Uses class names instead of inline styles</li> <li>Unifies line break handling across browsers</li> <li>Uses sandboxed iframes in order to prevent identity theft through XSS</li> <li>Speech-input for Chrome</li> </ul> <h2>Browser Support</h2> <ul> <li><img width="24" alt="" src="http://xing.github.com/wysihtml5/img/icn_firefox.png" height="24"> Firefox 3.5+</li> <li><img width="24" alt="" src="http://xing.github.com/wysihtml5/img/icn_chrome.png" height="24"> Chrome</li> <li><img width="24" alt="" src="http://xing.github.com/wysihtml5/img/icn_internet_explorer.png" height="24"> IE 8+</li> <li><img width="24" alt="" src="http://xing.github.com/wysihtml5/img/icn_safari.png" height="24"> Safari 4+</li> <li><img width="24" alt="" src="http://xing.github.com/wysihtml5/img/icn_ios.png" height="24"> Safari on iOS 5+</li> <li><img width="24" alt="" src="http://xing.github.com/wysihtml5/img/icn_opera.png" height="24"> Opera 11+</li> <li><strong>Graceful degradation:</strong> Unsupported browsers will get a textarea</li> </ul>