Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <textarea style="display:none;" name="myTextArea" id="myTextArea" cols="100" rows="14"></textarea>
- <iframe name="richTextField" id="richTextField"></iframe>
- <button id="article_btn" onclick="saveArticle()">Save Article</button>
- function saveArticle(){
- var theForm = _("writearticle");
- theForm.elements["myTextArea"].value = window.frames['richTextField'].document.body.innerHTML;
- theForm.submit();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement