daily pastebin goal
55%
SHARE
TWEET

Untitled

a guest Oct 12th, 2017 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div id="my_html_content">Содержимое с <b>HTML</b> тегами и всем что может быть&nbsp;еще.</div>
  2.    
  3. tinymce.get("my_html_content").getContent()
  4.    
  5. function ajax_save_news(news_content)
  6. {
  7.     $.ajax({
  8.         url:"ajax_action.php?action=ajax_save_news&news_id="+NEWS_ID,
  9.         type:"post",
  10.         dataType:"html",
  11.         data:"news_content=" + news_content,
  12.         success:function(return_data)
  13.         {
  14.             alert(return_data);
  15.         }
  16.     });
  17. }
RAW Paste Data
Top