Home > php教程 > php手册 > body text

kindeditor编辑器 php获取内容

WBOY
Release: 2016-06-13 09:37:37
Original
1311 people have browsed it

在使用kindeditor编辑器的时候,使用js点击提交表单php不能获取对应的编辑器内容

需要添加的代码为:

KindEditor.ready(function(K) {
	editor = K.create('#editor', {
		resizeType : 0,
		allowImageRemote : false,
		width : '100%',
		height : '100%',
		items : ['source','bold','italic','underline','forecolor','image'],
		afterBlur : function(){this.sync();}//需要添加的
	});
});
Copy after login
添加上后可以正常获取,解决问题

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template