javascript - Trying to create Share-Wysiwyg -
i stuck how should attack problem. trying create wysiwyg editor works sharejs. demo can found here:
http://173.230.158.248:10000/tiny.html
i trying create light weight near realtime wysiwyg editor can incorporate site easily. problem encountering can update div area , copy html contents of div textarea. unable trigger textarea function here:
https://github.com/jcostello84/sharejs-wysiwyg/blob/master/tiny_files/textarea2.js#l81
i've tried using using trigger like:
$('#purpose-editor').trigger('keydown');
however returns:
uncaught typeerror: object asdfads<div>asdf</div> has no method 'attachevent'
does have idea how can trigger keydown event on textarea when updating div?
Comments
Post a Comment