ecshop换php文本编辑器源码,ecshop整合替换百度编辑器 ueditor,测试通过

【实例简介】

文章为转载以备用,请严格按要求修改, 特别是pageheader.htm这个文件

================================================================

1、下载uediter编辑器,解压上传目录uediter到根目录/includes/下

2、修改admin/includes/lib_main.php

/**

* 生成编辑器

* @param string input_name 输入框名称

* @param string input_value 输入框值

*/

function creat

【实例截图】

【核心代码】

2885205ueditor

└── ueditor

├── dialogs

│   ├── anchor

│   │   └── anchor.html

│   ├── attachment

│   │   ├── attachment.css

│   │   ├── attachment.html

│   │   ├── attachment.js

│   │   ├── fileTypeImages

│   │   │   ├── icon_chm.gif

│   │   │   ├── icon_default.png

│   │   │   ├── icon_doc.gif

│   │   │   ├── icon_exe.gif

│   │   │   ├── icon_jpg.gif

│   │   │   ├── icon_mp3.gif

│   │   │   ├── icon_mv.gif

│   │   │   ├── icon_pdf.gif

│   │   │   ├── icon_ppt.gif

│   │   │   ├── icon_psd.gif

│   │   │   ├── icon_rar.gif

│   │   │   ├── icon_txt.gif

│   │   │   └── icon_xls.gif

│   │   └── images

│   │   ├── alignicon.gif

│   │   ├── alignicon.png

│   │   ├── bg.png

│   │   ├── file-icons.gif

│   │   ├── file-icons.png

│   │   ├── icons.gif

│   │   ├── icons.png

│   │   ├── image.png

│   │   ├── progress.png

│   │   ├── success.gif

│   │   └── success.png

│   ├── background

│   │   ├── background.css

│   │   ├── background.html

│   │   ├── background.js

│   │   └── images

│   │   ├── bg.png

│   │   └── success.png

│   ├── charts

│   │   ├── chart.config.js

│   │   ├── charts.css

│   │   ├── charts.html

│   │   ├── charts.js

│   │   └── images

│   │   ├── charts0.png

│   │   ├── charts1.png

│   │   ├── charts2.png

│   │   ├── charts3.png

│   │   ├── charts4.png

│   │   └── charts5.png

│   ├── emotion

│   │   ├── emotion.css

│   │   ├── emotion.html

│   │   ├── emotion.js

│   │   └── images

│   │   ├── 0.gif

│   │   ├── bface.gif

│   │   ├── cface.gif

│   │   ├── fface.gif

│   │   ├── jxface2.gif

│   │   ├── neweditor-tab-bg.png

│   │   ├── tface.gif

│   │   ├── wface.gif

│   │   └── yface.gif

│   ├── gmap

│   │   └── gmap.html

│   ├── help

│   │   ├── help.css

│   │   ├── help.html

│   │   └── help.js

│   ├── image

│   │   ├── image.css

│   │   ├── image.html

│   │   ├── image.js

│   │   └── images

│   │   ├── alignicon.jpg

│   │   ├── bg.png

│   │   ├── icons.gif

│   │   ├── icons.png

│   │   ├── image.png

│   │   ├── progress.png

│   │   ├── success.gif

│   │   └── success.png

│   ├── insertframe

│   │   └── insertframe.html

│   ├── internal.js

│   ├── link

│   │   └── link.html

│   ├── map

│   │   ├── map.html

│   │   └── show.html

│   ├── music

│   │   ├── music.css

│   │   ├── music.html

│   │   └── music.js

│   ├── preview

│   │   └── preview.html

│   ├── scrawl

│   │   ├── images

│   │   │   ├── addimg.png

│   │   │   ├── brush.png

│   │   │   ├── delimgH.png

│   │   │   ├── delimg.png

│   │   │   ├── emptyH.png

│   │   │   ├── empty.png

│   │   │   ├── eraser.png

│   │   │   ├── redoH.png

│   │   │   ├── redo.png

│   │   │   ├── scaleH.png

│   │   │   ├── scale.png

│   │   │   ├── size.png

│   │   │   ├── undoH.png

│   │   │   └── undo.png

│   │   ├── scrawl.css

│   │   ├── scrawl.html

│   │   └── scrawl.js

│   ├── searchreplace

│   │   ├── searchreplace.html

│   │   └── searchreplace.js

│   ├── snapscreen

│   │   └── snapscreen.html

│   ├── spechars

│   │   ├── spechars.html

│   │   └── spechars.js

│   ├── table

│   │   ├── dragicon.png

│   │   ├── edittable.css

│   │   ├── edittable.html

│   │   ├── edittable.js

│   │   ├── edittd.html

│   │   └── edittip.html

│   ├── template

│   │   ├── config.js

│   │   ├── images

│   │   │   ├── bg.gif

│   │   │   ├── pre0.png

│   │   │   ├── pre1.png

│   │   │   ├── pre2.png

│   │   │   ├── pre3.png

│   │   │   └── pre4.png

│   │   ├── template.css

│   │   ├── template.html

│   │   └── template.js

│   ├── video

│   │   ├── images

│   │   │   ├── bg.png

│   │   │   ├── center_focus.jpg

│   │   │   ├── file-icons.gif

│   │   │   ├── file-icons.png

│   │   │   ├── icons.gif

│   │   │   ├── icons.png

│   │   │   ├── image.png

│   │   │   ├── left_focus.jpg

│   │   │   ├── none_focus.jpg

│   │   │   ├── progress.png

│   │   │   ├── right_focus.jpg

│   │   │   ├── success.gif

│   │   │   └── success.png

│   │   ├── video.css

│   │   ├── video.html

│   │   └── video.js

│   ├── webapp

│   │   └── webapp.html

│   └── wordimage

│   ├── fClipboard_ueditor.swf

│   ├── imageUploader.swf

│   ├── tangram.js

│   ├── wordimage.html

│   └── wordimage.js

├── fix_jquery

│   ├── jquery.json-1.3.js

│   ├── jquery.min.js

│   └── transport_json.js

├── index.html

├── lang

│   ├── en

│   │   ├── en.js

│   │   └── images

│   │   ├── addimage.png

│   │   ├── alldeletebtnhoverskin.png

│   │   ├── alldeletebtnupskin.png

│   │   ├── background.png

│   │   ├── button.png

│   │   ├── copy.png

│   │   ├── deletedisable.png

│   │   ├── deleteenable.png

│   │   ├── listbackground.png

│   │   ├── localimage.png

│   │   ├── music.png

│   │   ├── rotateleftdisable.png

│   │   ├── rotateleftenable.png

│   │   ├── rotaterightdisable.png

│   │   ├── rotaterightenable.png

│   │   └── upload.png

│   └── zh-cn

│   ├── images

│   │   ├── copy.png

│   │   ├── localimage.png

│   │   ├── music.png

│   │   └── upload.png

│   └── zh-cn.js

├── php

│   ├── action_crawler.php

│   ├── action_list.php

│   ├── action_upload.php

│   ├── config.json

│   ├── controller.php

│   └── Uploader.class.php

├── themes

│   ├── default

│   │   ├── css

│   │   │   ├── ueditor.css

│   │   │   └── ueditor.min.css

│   │   ├── dialogbase.css

│   │   └── images

│   │   ├── anchor.gif

│   │   ├── arrow_down.png

│   │   ├── arrow.png

│   │   ├── arrow_up.png

│   │   ├── button-bg.gif

│   │   ├── cancelbutton.gif

│   │   ├── charts.png

│   │   ├── cursor_h.gif

│   │   ├── cursor_h.png

│   │   ├── cursor_v.gif

│   │   ├── cursor_v.png

│   │   ├── dialog-title-bg.png

│   │   ├── filescan.png

│   │   ├── highlighted.gif

│   │   ├── icons-all.gif

│   │   ├── icons.gif

│   │   ├── icons.png

│   │   ├── loaderror.png

│   │   ├── loading.gif

│   │   ├── lock.gif

│   │   ├── neweditor-tab-bg.png

│   │   ├── pagebreak.gif

│   │   ├── scale.png

│   │   ├── sortable.png

│   │   ├── spacer.gif

│   │   ├── sparator_v.png

│   │   ├── table-cell-align.png

│   │   ├── tangram-colorpicker.png

│   │   ├── toolbar_bg.png

│   │   ├── unhighlighted.gif

│   │   ├── upload.png

│   │   ├── videologo.gif

│   │   ├── word.gif

│   │   └── wordpaste.png

│   └── iframe.css

├── third-party

│   ├── codemirror

│   │   ├── codemirror.css

│   │   └── codemirror.js

│   ├── highcharts

│   │   ├── adapters

│   │   │   ├── mootools-adapter.js

│   │   │   ├── mootools-adapter.src.js

│   │   │   ├── prototype-adapter.js

│   │   │   ├── prototype-adapter.src.js

│   │   │   ├── standalone-framework.js

│   │   │   └── standalone-framework.src.js

│   │   ├── highcharts.js

│   │   ├── highcharts-more.js

│   │   ├── highcharts-more.src.js

│   │   ├── highcharts.src.js

│   │   ├── modules

│   │   │   ├── annotations.js

│   │   │   ├── annotations.src.js

│   │   │   ├── canvas-tools.js

│   │   │   ├── canvas-tools.src.js

│   │   │   ├── data.js

│   │   │   ├── data.src.js

│   │   │   ├── drilldown.js

│   │   │   ├── drilldown.src.js

│   │   │   ├── exporting.js

│   │   │   ├── exporting.src.js

│   │   │   ├── funnel.js

│   │   │   ├── funnel.src.js

│   │   │   ├── heatmap.js

│   │   │   ├── heatmap.src.js

│   │   │   ├── map.js

│   │   │   ├── map.src.js

│   │   │   ├── no-data-to-display.js

│   │   │   └── no-data-to-display.src.js

│   │   └── themes

│   │   ├── dark-blue.js

│   │   ├── dark-green.js

│   │   ├── gray.js

│   │   ├── grid.js

│   │   └── skies.js

│   ├── jquery-1.10.2.js

│   ├── jquery-1.10.2.min.js

│   ├── jquery-1.10.2.min.map

│   ├── snapscreen

│   │   └── UEditorSnapscreen.exe

│   ├── SyntaxHighlighter

│   │   ├── shCoreDefault.css

│   │   └── shCore.js

│   ├── video-js

│   │   ├── font

│   │   │   ├── vjs.eot

│   │   │   ├── vjs.svg

│   │   │   ├── vjs.ttf

│   │   │   └── vjs.woff

│   │   ├── video.dev.js

│   │   ├── video.js

│   │   ├── video-js.css

│   │   ├── video-js.min.css

│   │   └── video-js.swf

│   ├── webuploader

│   │   ├── Uploader.swf

│   │   ├── webuploader.css

│   │   ├── webuploader.custom.js

│   │   ├── webuploader.custom.min.js

│   │   ├── webuploader.flashonly.js

│   │   ├── webuploader.flashonly.min.js

│   │   ├── webuploader.html5only.js

│   │   ├── webuploader.html5only.min.js

│   │   ├── webuploader.js

│   │   ├── webuploader.min.js

│   │   ├── webuploader.withoutimage.js

│   │   └── webuploader.withoutimage.min.js

│   └── zeroclipboard

│   ├── ZeroClipboard.js

│   ├── ZeroClipboard.min.js

│   └── ZeroClipboard.swf

├── ueditor.all.js

├── ueditor.all.min.js

├── ueditor.config.js

├── ueditor.parse.js

└── ueditor.parse.min.js

56 directories, 279 files

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
ecshop百度ueditor插件相关信息如下: ecshop版本:ecshop2.7.3 编码格式:UTF-8 ueditor版本:1.4.3 1、打开admin/includes/lib_main.php文件 (1)找到:(大约在306-323行左右) /** * 生成编辑器 * @param string input_name 输入框名称 * @param string input_value 输入框值 */ function create_html_editor($input_name, $input_value = '') { global $smarty; $editor = new FCKeditor($input_name); $editor->BasePath = '../includes/fckeditor/'; $editor->ToolbarSet = 'Normal'; $editor->Width = '100%'; $editor->Height = '320'; $editor->Value = $input_value; $FCKeditor = $editor->CreateHtml(); $smarty->assign('FCKeditor', $FCKeditor); } 将这段代码修改为: /** * 生成编辑器 * @param string input_name 输入框名称 * @param string input_value 输入框值 */ function create_html_editor($input_name, $input_value = '') { global $smarty; $editor = new FCKeditor($input_name); $editor->BasePath = '../includes/fckeditor/'; $editor->ToolbarSet = 'Normal'; $editor->Width = '100%'; $editor->Height = '320'; $editor->Value = $input_value; $FCKeditor = $editor->CreateHtml(); $smarty->assign('FCKeditor', $FCKeditor); } 将这段代码修改为: /** * 生成编辑器 * @param string input_name 输入框名称 * @param string input_value 输入框值 */ function create_html_editor($input_name, $input_value = '') { global $smarty; $kindeditor=" <script id='editor' name='$input_name' type='text/plain' style='width:100%;height:500px;'>$input_value</script> <script type='text/javascript' charset='utf-8' src='../includes/ueditor/ueditor.config.js'></script> <script type='text/javascript' charset='utf-8' src='../includes/ueditor/ueditor.all.min.js'> </script> <script type='text/javascript' charset='utf-8' src='../includes/ueditor/lang/zh-cn/zh-cn.js'></script> <script> var ue = UE.getEditor('editor'); UE.getEditor('editor').focus(); </script> "; $smarty->assign('FCKeditor', $k

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值