欢迎光临
感谢一路有你

ueditor编辑器html模式下无法保存内容,支持多编辑器

如果你对该文章中的内容有疑问/不解,可以点击此处链接提问
要注明问题和此文章链接地址 点击此处跳转
 

以下是详细代码,支持多个编辑器

< script id="zf_2019701550_1739870122" ueditor="zf_2019701550_1739870122" class="zfcms_ueditor" name="content" type="text/plain" >

var ue = UE.getEditor("zf_2019701550_1739870122",{
initialFrameHeight:350,
scaleEnabled:false
});
if(!ueditor_ids){
var ueditor_ids = [];
}
ueditor_ids.push("zf_2019701550_1739870122");

然后保存的时候使用
if(typeof ueditor_ids !== 'undefined' && ueditor_ids.length > 0){
for(var i = 0; i < ueditor_ids.length; i++){
if(UE.getEditor(ueditor_ids[i]).queryCommandState('source')!=0){
UE.getEditor(ueditor_ids[i]).execCommand('source');
}
}
}
赞(0) 打赏
未经允许不得转载:王明昌博客 » ueditor编辑器html模式下无法保存内容,支持多编辑器
分享到: 更多 (0)

相关推荐

  • 暂无文章

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏

×
订阅图标按钮