Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. <textarea style="display:none;" name="myTextArea" id="myTextArea" cols="100" rows="14"></textarea>
  2. <iframe name="richTextField" id="richTextField"></iframe>
  3. <button id="article_btn" onclick="saveArticle()">Save Article</button>
  4.  
  5. function saveArticle(){
  6. var theForm = _("writearticle");
  7. theForm.elements["myTextArea"].value = window.frames['richTextField'].document.body.innerHTML;
  8. theForm.submit();
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement