I have a code that allows me to format text in a text box with bold, underline, underline, or italics. But it displays html tags instead of the actual formatting. I know, as soon as I output it inside the div, it will be formatted, but I want to show the formatting while the user writes the text.
How to enable formatting? JavaScript is fine, I'm using jQuery at the moment. I would prefer not to use the WYSIWYG editor if there is another option.
Thanks for any help.
contentEditable div
<div contentEditable="true"> </div
, , , .
; , , , " " div / . onKeyUp, div, , . , , , , , WYSIWYG.
, contentEditable + WYSIWYG, , , IMHO.
, div html, , . Javascript .
, , , SO? , , WYSIWYG.
div . jquery http://plugins.jquery.com/project/designMode
Textarea, wysiwyg - . . :
Devgurus wysiwyg