织梦dede商品模型和自定义模型本编辑器不支持多
导读:织梦技巧织梦技巧如果不喜欢改的,可以直接下载我已经改好的这2个文件,改动文件(gbk + utf8)提供下载 /dede/templets/archives_add.htm /网站建设公司如何seo优化推广网站。
如果不喜欢改的,可以直接下载我已经改好的这2个文件,改动文件(gbk + utf8)提供下载 /dede/templets/archives_add.htm /dede/templets/archives_edit.htm 备份你自己的,根据你的编码覆盖下载我的 链接: https://pan.baidu.com/s/1fr8qsxROmmhyLkMw3j0TGQ 提取码: smi5 特别提醒:默认字段名为body,如果你添加是自定义字段名是其他,记得修改那2个后台模板文件里的 CKEDITOR.inst […]
如果不喜欢改的,可以直接下载我已经改好的这2个文件,改动文件(gbk + utf8)提供下载
/dede/templets/archives_add.htm
/dede/templets/archives_edit.htm
备份你自己的,根据你的编码覆盖下载我的
链接: https://pan.baidu.com/s/1fr8qsxROmmhyLkMw3j0TGQ 提取码: smi5
特别提醒:默认字段名为body,如果你添加是自定义字段名是其他,记得修改那2个后台模板文件里的 CKEDITOR.instances.body ,有3处,body改成你自己的字段名称
下面教程是动手自己改的,喜欢折腾的小伙伴可以参考来修改
dede编辑器不支持多图发布功能解决方法
1、打开 /dede/templets/archives_add.htm 找到
js/main.js在它下如何seo优化推广网站面一行加入
<script type="text/javascript"src="js/handlers.js"></script> <script type="text/javascript" src="../images/swfupload/swfupload.js"></script> <script language="javascript" src="../include/js/jquery/jquery.js"></script> <script language="javascript" src="../include/js/jquery/ui.core.js"></script> <script language="javascript" src="../include/js/jquery/ui.draggable.js"></script> <script lang='javascript' src='js/tb-box.js'></script> <script language="javascript"> <!-- var swfu = null; var arctype = 'article'; window.onload = function () { swfu = new SWFUpload( { // Backend Settings upload_url: "swfupload.php", post_params: {"PHPSESSID": "<?php echo session_id(); ?>", "dopost" : "", "arctype" : arctype}, // File Upload Settings file_size_limit : "2 MB", // 2MB file_types : "*.jpg; *.gif; *.png", file_types_description : "选择 JPEG/GIF/PNG 格式图片", file_upload_limit : "0", file_queue_error_handler : fileQueueError, file_dialog_complete_handler : fileDialogComplete, upload_progress_handler : uploadProgress, upload_error_handler : uploadError, upload_success_handler : uploadSuccess, upload_complete_handler : uploadComplete, button_image_url : "../images/SmallSpyGlassWithTransperancy_17x18.png", button_placeholder_id : "spanButtonPlaceholder", button_width: '100%', button_height: 26, button_text : '<div class="button" style="background-color:#E5F1CF; height:26px; text-align:center; line-height:26px">上传图片(可多选)</div>', button_text_style : '', button_text_top_padding: 0, button_text_left_padding: 10, button_window_mode: SWFUpload.WINDOW_MODE.TRANSPARENT, button_cursor: SWFUpload.CURSOR.HAND, // Flash Settings flash_url : "../images/swfupload/swfupload.swf", custom_settings : { upload_target : "divFileProgressContainer" }, // Debug Settings debug: false }); }; function addtoEdit(pid) { jQuery.get('swfupload.php?dopost=addtoedit&id=' + pid, function(data) { var picTitle = jQuery('input[name="picinfook'+pid+'"]').val(); var picHTML = '<img src="'+data+'" alt="'+picTitle+'"/>'; CKEDITOR.instances.body.insertHtml(picHTML); }); } //删除已经上传的图片 function delAlbPic(pid){ // 同步删除编辑器中插入的图片 jQuery("#__tmpbody").html(); jQuery.get('swfupload.php?dopost=addtoedit&id=' + pid, function(data) { var iptbody = CKEDITOR.instances.body.getData(); jQuery("#__tmpbody").html(iptbody); jQuery("#__tmpbody").find('img').each(function() { if(jQuery(this).attr('src') == data) { //alert(data); jQuery(this).remove(); } }); CKEDITOR.instances.body.setData(jQuery("#__tmpbody").html()); jQuery("#__tmpbody").html(); var tgobj = $Obj('albCtok'+pid); var myajax = new DedeAjax(tgobj); myajax.SendGet2('swfupload.php?dopost=del&id='+pid); $Obj('thumbnails').removeChild(tgobj); }); } //删除已经上传的图片(编辑时用) function delAlbPicOld(picfile, pid){ var tgobj = $Obj('albold'+pid); var myajax = new DedeAjax(tgobj); myajax.SendGet2('swfupload.php?dopost=delold&picfile='+picfile); $Obj('thumbnailsEdit').removeChild(tgobj); } --> </script>声明: 本文由我的SEOUC技术文章主页发布于:2023-05-25 ,文章织梦dede商品模型和自定义模型本编辑器不支持多主要讲述模型,自定义,织梦网站建设源码以及服务器配置搭建相关技术文章。转载请保留链接: https://www.seouc.com/article/web_8317.html