本文主要是介绍ckeditor、jhtmareal获取内容的方法,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
ckeditor
方法一:var data_tc = CKEDITOR.instances.editor1.getData(); //editor为<textarea>的id,无法实现动态获取
方法二:var data_tc = CKEDITOR.instances[“editor1”].getData(); //动态获取
jhtmareal
$(this).htmlarea('toHtmlString')
这篇关于ckeditor、jhtmareal获取内容的方法的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!