jQuery Simple WYSIWYG Editor
완전한 이지윅 에디터는 아니지만 공부용으로 좋을것 같네요. {데모}
http://de77.com/javascript/jquery-simple-wysiwyg-editor
[ATTACH]574[/ATTACH]
function action(e,a,p)
{
/*
$(e).parents().each(function(){
var obj = $(this);
var classes = obj.attr('class').split(' ');
if ($.inArray('de77_wysiwyg', classes) > -1)
{
obj.find('.de77_editor').focus();
}
});
*/
if (p == null) p = false;
document.execCommand(a,null,p);
}
jQuery 를 사용하지 않는 것도 있습니다. {데모}
http://de77.com/html/how-to-make-a-wysiwyg-editor-in-javascript
ps. 참고로 execCommand 를 지원하는 브라우저를 정리 해놓은 곳이 있습니다. http://www.quirksmode.org/dom/execCommand.html