Home > Backend Development > PHP Tutorial > js怎么取得ueditor里的值

js怎么取得ueditor里的值

WBOY
Release: 2016-06-13 12:03:12
Original
1290 people have browsed it

js如何取得ueditor里的值啊
我现在想用ajax的$post给服务器端传值,如何获取ueditor里的值呢,我的页面加载代码如下:
 
<script>UE.getEditor('blog_content');</script>
页面能显示出来ueditor。
我现在用jq呀js通过id“blog_content”取到的值alert出来全是空,取不到这个值,我如何$post这个值啊。。。。请高手解答
------解决方案--------------------

引用:
我查了editor的API,我看着有editor.getContent() 这个方法,我也用了,也是空。我不确定值是不是在blog_content里,用$('#blog_content').val();的值也是空。。。

那应该是你搞错对象,找错
UE.getEditor('editor').getContent() 用这看看
------解决方案--------------------
看看你的 .post 怎么写的。。。估计是写错了
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template