php - how to get content in kindeditor through js -
i using kindeditor store data , passing value in js .. working while editing not getting content update....
<script> var editor; kindeditor.ready(function(k) { editor = k.create('textarea[name="eventcontent"]', { allowfilemanager : true, langtype : 'en' }); k('input[name=gethtml]').click(function(e) { alert(editor.html()); }); //here var eventcontent = (editor.html()); }); </script> var eventcontent = (editor.html());
Comments
Post a Comment