$(function(){ editor=loadEditor('homehelp_content'); $(".face-icon").jqfaceedit({txtAreaObj:editor,containerObj:$('#emotion_parentcontainer'),top:25,left:-27}); }); function add(){ if($('#value').val()!='' && $('#value').val()!==null){ update(); return; } $("#submit_button").attr("disabled", "disabled"); $("#submit_button").val( 'add...' ); $('#homehelp_content').val(editor.html()); Dyhb.AjaxSubmit('homehelpAdd','','',complete); } function update(){ $("#submit_button").attr("disabled", "disabled"); $("#submit_button").val( 'update...' ); $('#homehelp_content').val(editor.html()); Dyhb.AjaxSubmit('homehelpAdd','','',function(){ $("#submit_button").attr("disabled", false); $("#submit_button").val( '更新' ); }); } function complete(data,status){ $("#submit_button").attr("disabled", false); $("#submit_button").val( '发布' ); if(status==1){ setTimeout(function(){window.location.href=D.U('app/config?controller=homehelp&action=edit&id=&value='+data.homehelp_id);},1000); } } function insertHomehelpcontentattachment(nAttachmentid){ insertAttachment(editor,nAttachmentid); } function insertHomehelpcontentmusic(sContent){ insertMusic(editor,sContent); } function insertHomehelpcontentvideo(sContent){ insertVideo(editor,sContent); }

操作提示

  • 站点帮助信息均由用户自己定义

编辑站点帮助添加站点帮助

-->" method="post" id="homehelpAdd">
-->"/>
帮助标题最大字符为250
帮助的分类,方便管理

站点帮助的详细内容,请根据自己网站的性质进行适当的修改 查看内容支持的UBB代码
系统变量替换: {site_name} 网站标题,{site_description} 网站描述,{site_url} 站点信息,{time} 当前时间,{user_name} 登录用户,{user_nikename} 登录用户昵称,{admin_email} 系统管理员邮箱