Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/368.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/85.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何检索TinyMCE的值_Javascript_Jquery_Tinymce_Return Value - Fatal编程技术网

Javascript 如何检索TinyMCE的值

Javascript 如何检索TinyMCE的值,javascript,jquery,tinymce,return-value,Javascript,Jquery,Tinymce,Return Value,我在“textarea”中遇到了问题,我想取“TinyMCE”的值。如何用jquery取“TinyMCE”的值 <td> <textarea id="body" name="body" rows="20" cols="50" class="mceEditor"><c:out value="${article.body}"/></textarea> <form:errors path="body" cssClass="fieldErro

我在“textarea”中遇到了问题,我想取“TinyMCE”的值。如何用jquery取“TinyMCE”的值

<td>
  <textarea id="body" name="body" rows="20" cols="50" class="mceEditor"><c:out value="${article.body}"/></textarea>
  <form:errors path="body" cssClass="fieldError"/>
</td>

这是firebug之后的代码

<table id="body_editor_tbl" class="mceLayout" cellspacing="0" cellpadding="0" style="width: 341px; height: 303px;">
  <tbody id="">
    <tr class="mceFirst">
    <tr class="mceLast">
    <td class="mceIframeContainer mceFirst mceLast">
      <iframe id="body_editor_ifr" frameborder="0" src="javascript:""" style="width: 100%; height: 257px;">
        <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
        <html>
          <head xmlns="http://www.w3.org/1999/xhtml">
          <body id="tinymce" class="mceContentBody " spellcheck="false" dir="ltr">
            <br mce_bogus="1">
          </body>
        </html>
      </iframe>
    </td>
  </tr>
</tbody>
</table>


如何检索TinyMCE的值,
karenasaya希望在tinymce没有价值时发出一条消息,如果没有价值将被忽略这将提供tinymce编辑器的内容

$('#your_editor_id').tinymce().getContent());
见此: