You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jonathan Camenisch edited this page Sep 9, 2013
·
5 revisions
Neat Extras
Besides the well advertised feature set wysihtml5 offers some hidden gems that might be useful to developers (this is an incomplete list).
When the browser supports rich text formatting the <body> of the page receives a css class “wysihtml5-supported”. This can be useful if you want to display some hints or activate certain UI elements.
When the browser supports rich text formatting a hidden <input> with name “_wysihtml5_mode” and value “1” is inserted after the textarea. This can be used on the server side to specially treat wysihtml5 output after form submit.
If within a <form>, the editor hooks into the “reset” and “submit” events and ensures that the rich text element is in sync with the original <textarea>
Following keyboard shortcuts are supported: bold (CTRL + B), italic (CTRL + I), underline (CTRL + U)