如何设置会员后台的HTML在线编辑器(2)_动易Cms教程

编辑Tag赚U币
教程Tag:暂无Tag,欢迎添加,赚取U币!

将上述代码中arrButtons(55)改成arrButtons(56)即可。注重:批量上传图片最好不要自定义,因为上传的地址是根据ChannelID 制定的。

提示:editor.asp 文件中提供了各模块中调用的编辑器按钮数组,如文章频道中调用的编辑器为Case 0,模板中调用的编辑器为Case 1 ,留言和公告中调用的编辑器为Case 2,图片频道、下载频道中调用的编辑器为Case 3,商城频道中调用的编辑器为Case 4。修改editor.asp 文件中相应的值即可显示不同的编辑器按钮数组。

附:editor.asp 文件中调入按钮数组及含义:
arrButtons(0) = "yToolbar$$$"
arrButtons(1) = "/yToolbar$$$"
arrButtons(2) = "TBHandle$$$"
arrButtons(3) = "TBSep$$$"
arrButtons(101) = "TBGen$$$"
arrButtons(102) = "TBGen2$$$"
arrButtons(103) = "TBGen3$$$"
arrButtons(5) = "Btn$全部选择$format('selectall')$selectall.gif"
arrButtons(6) = "Btn$删除$format('delete')$delete.gif"
arrButtons(7) = "Btn$剪切$format('cut')$cut.gif"
arrButtons(8) = "Btn$复制$format('copy')$copy.gif"
arrButtons(9) = "Btn$粘贴$format('paste')$paste.gif"
arrButtons(10) = "Btn$从word中粘贴$insert('word')$wordpaste.gif"
arrButtons(11) = "Btn$撤消$format('undo')$undo.gif"
arrButtons(12) = "Btn$恢复$format('redo')$redo.gif"
arrButtons(13) = "Btn$查找 / 替换$findstr()$find.gif"
arrButtons(14) = "Btn$计算器$insert('calculator')$calculator.gif"
arrButtons(15) = "Btn$打印$format('Print')$print.gif"
arrButtons(16) = "Btn$查看帮助$insert('help')$help.gif"
arrButtons(17) = "Btn$左对齐$format('justifyleft')$aleft.gif"
arrButtons(18) = "Btn$居中$format('justifycenter')$acenter.gif"
arrButtons(19) = "Btn$右对齐$format('justifyright')$aright.gif"
arrButtons(20) = "Btn$两端对齐$format('JustifyFull')$JustifyFull.gif"
arrButtons(21) = "Btn$绝对或相对位置$format('absolutePosition')$abspos.gif"
arrButtons(22) = "Btn$删除文字格式$format('RemoveFormat')$clear.gif"
arrButtons(23) = "Btn$插入段落$format('insertparagraph')$paragraph.gif"
arrButtons(24) = "Btn$插入换行符号$insert('br')$chars.gif"
arrButtons(25) = "Btn$字体颜色$insert('fgcolor')$fgcolor.gif"
arrButtons(26) = "Btn$文字背景色$insert('fgbgcolor')$fgbgcolor.gif"
arrButtons(27) = "Btn$加粗$format('bold')$bold.gif"
arrButtons(28) = "Btn$斜体$format('italic')$italic.gif"
arrButtons(29) = "Btn$下划线$format('underline')$underline.gif"
arrButtons(30) = "Btn$删除线$format('StrikeThrough')$strikethrough.gif"
arrButtons(31) = "BtnMenu$更多文字格式$showToolMenu('font')$arrow.gif"
arrButtons(32) = "Btn$显示或隐藏表格虚线、按钮等显示样式$showBorders()$showBorders.gif"
arrButtons(33) = "Btn$图片左环绕$imgalign('left')$imgleft.gif"
arrButtons(34) = "Btn$图片右环绕$imgalign('right')$imgright.gif"
arrButtons(35) = "Btn$插入超级连接$insert('CreateLink')$url.gif"
arrButtons(36) = "Btn$取消超级链接$format('unLink')$nourl.gif"
arrButtons(37) = "Btn$插入普通水平线$format('InsertHorizontalRule')$line.gif"
arrButtons(38) = "Btn$插入非凡水平线$insert('hr')$sline.gif"
arrButtons(39) = "Btn$插入手动分页符$insert('page')$page.gif"
arrButtons(40) = "Btn$插入当前日期$insert('nowdate')$date.gif"
arrButtons(41) = "Btn$插入当前时间$insert('nowtime')$time.gif"
arrButtons(42) = "Btn$插入栏目框$insert('FIELDSET')$fieldset.gif"
arrButtons(43) = "Btn$插入网页$insert('iframe')$htm.gif"
arrButtons(44) = "Btn$插入Excel表格$insert('excel')$excel.gif"
arrButtons(45) = "Btn$插入表格$TableInsert()$table.gif"
arrButtons(46) = "BtnMenu$表格操作$showToolMenu('table')$arrow.gif"
arrButtons(47) = "Btn$插入下拉菜单$Insermenu('" & Now() & "')$menu.gif"
arrButtons(48) = "BtnMenu$更多表单控件$showToolMenu('form')$arrow.gif"
arrButtons(49) = "Btn$插入滚动文本$insert('insermarquee')$Marquee.gif"
arrButtons(50) = "BtnMenu$插入更多样式$showToolMenu('object')$arrow.gif"
arrButtons(51) = "Btn$插入表情符号$insert('inseremot')$Emot.gif"
arrButtons(52) = "Btn$插入非凡符号$Insertlr('editor_tsfh.asp',300,190," & (Now() - Date) * 24 * 60 * 60 * 1000 & ")$symbol.gif"
arrButtons(53) = "Btn$插入公式$insert('InsertEQ')$eq.gif"
arrButtons(54) = "BtnMenu$公式操作$showToolMenu('gongshi')$arrow.gif"
arrButtons(55) = "Btn$插入图片,支持格式为:jpg、gif、bmp、png等$insert('pic')$img.gif"
arrButtons(56) = "Btn$批量上传图片,支持格式为:jpg、gif、bmp、png等$insert('batchpic')$pimg.gif"
arrButtons(57) = "Btn$插入flash多媒体文件$insert('swf')$flash.gif"
arrButtons(58) = "Btn$插入视频文件,支持格式为:avi、wmv、asf等$insert('wmv')$wmv.gif"
arrButtons(59) = "Btn$插入RealPlay文件,支持格式为:rm、ra、ram$insert('rm')$rm.gif"
arrButtons(60) = "Btn$上传附件$insert('fujian')$fujian.gif"
arrButtons(61) = "Btn$从上传文件中选择$insert('SelectUpFile')$SelectUpFile.gif"
arrButtons(62) = "Btn$插入标签$insert('Label')$label.gif"
arrButtons(63) = "Btn$图片单行居中$imgalign('center')$imgcenter.gif"
arrButtons(64) = "Btn$插入带标题的分页$insert('pagetitle')$pagetitle.gif"

arrButtons(65) = "Btn$显示文章标题等信息$SuperFunctionLabel('" & InstallDir & "Editor/editor_label.asp','GetArticleList','文章列表函数标签',1,'GetList',800,700)$LabelIco\GetArticleList.gif"
arrButtons(66) = "Btn$显示图片文章$SuperFunctionLabel('" & InstallDir & "Editor/editor_label.asp','GetPicArticle','显示图片文章标签',1,'GetPic',700,500)$LabelIco\GetPicArticle.gif"
arrButtons(67) = "Btn$显示幻灯片文章$SuperFunctionLabel('" & InstallDir &"Editor/editor_label.asp','GetSlidePicArticle','显示幻灯片文章标签',1,'GetSlide',700,500)$LabelIco\GetSlidePicArticle.gif"
arrButtons(68) = "Btn$文章自定义列表$SuperFunctionLabel('" & InstallDir &"Editor/editor_CustomListLabel.asp','CustomListLable','文章自定义列表标签',1,'GetArticleCustom',720,700)$LabelIco\GetArticleCustom.gif"
arrButtons(69) = "Btn$显示软件标题$SuperFunctionLabel('" & InstallDir &"Editor/editor_label.asp','GetSoftList','下载列表函数标签',2,'GetList',800,700)$LabelIco\GetSoftList.gif"
arrButtons(70) = "Btn$显示图片下载$SuperFunctionLabel('" & InstallDir &"Editor/editor_label.asp','GetPicSoft','显示图片下载标签',2,'GetPic',700,500)$LabelIco\GetPicSoft.gif"
arrButtons(71) = "Btn$显示幻灯片下载$SuperFunctionLabel('" & InstallDir &"Editor/editor_label.asp','GetSlidePicSoft','显示幻灯片下载标签',2,'GetSlide',700,500)$LabelIco\GetSlidePicSoft.gif"
arrButtons(72) = "Btn$下载自定义列表$SuperFunctionLabel('" & InstallDir &"Editor/editor_CustomListLabel.asp','CustomListLable','下载自定义列表标签',2,'GetSoftCustom',720,700)$LabelIco\GetSoftCustom.gif"
arrButtons(73) = "Btn$显示图片标题$SuperFunctionLabel('" & InstallDir &"Editor/editor_label.asp','GetPhotoList','图片列表函数标签',3,'GetList',800,700)$LabelIco\GetPhotoList.gif"
arrButtons(74) = "Btn$显示图片$SuperFunctionLabel('" & InstallDir &"Editor/editor_label.asp','GetPicPhoto','显示图片图文标签',3,'GetPic',700,550)$LabelIco\GetPicPhoto.gif"
arrButtons(75) = "Btn$显示图片幻灯片$SuperFunctionLabel('" & InstallDir &"Editor/editor_label.asp','GetSlidePicPhoto','显示幻灯片图片标签',3,'GetSlide',700,550)$LabelIco\GetSlidePicPhoto.gif"
arrButtons(77) = "Btn$显示商品标题$SuperFunctionLabel('" & InstallDir &"Editor/editor_label.asp','GetProductList','商城列表函数标签',5,'GetList',800,750)$LabelIco\GetProductList.gif"
arrButtons(78) = "Btn$显示商品图片$SuperFunctionLabel('" & InstallDir &"Editor/editor_label.asp','GetPicProduct','显示图片商城标签',5,'GetPic',700,600)$LabelIco\GetPicProduct.gif"
arrButtons(79) = "Btn$显示商品幻灯片$SuperFunctionLabel('" & InstallDir &"Editor/editor_label.asp','GetSlidePicProduct','显示幻灯片商城标签',5,'GetSlide',700,460)$LabelIco\GetSlidePicProduct.gif"
arrButtons(80) = "Btn$商品自定义列表$SuperFunctionLabel('" & InstallDir &"Editor/editor_CustomListLabel.asp','CustomListLable','商城自定义列表标签',5,'GetProductCustom',720,700)$LabelIco\GetProductCustom.gif"
arrButtons(81) = "Btn$网站logo$FunctionLabel('" & InstallDir &"Editor/Lable/PE_Logo.htm','240','140')$LabelIco\PE_logo.gif"
arrButtons(82) = "Btn$网站banner$FunctionLabel('" & InstallDir &"Editor/Lable/PE_Banner.htm','240','140')$LabelIco\PE_banner.gif"
arrButtons(83) = "Btn$弹出公告$FunctionLabel('" & InstallDir &"Editor/Lable/PE_AnnWin.htm','240','140')$LabelIco\PE_PopAnnouce.gif"
arrButtons(84) = "Btn$公告$FunctionLabel('" & InstallDir &"Editor/Lable/PE_Annouce2.htm','240','210')$LabelIco\PE_Annouce.gif"
arrButtons(85) = "Btn$友情$FunctionLabel('" & InstallDir &"Editor/Lable/PE_FSite2.htm','330','510')$LabelIco\PE_FriendSite.gif"
arrButtons(86) = "Btn$调查$InsertLabel('ShowVote')$LabelIco\PE_Vote.gif"
arrButtons(87) = "Btn$作者列表$FunctionLabel('" & InstallDir &"Editor/Lable/PE_Author_ShowList.htm','400','345')$LabelIco\PE_Author.gif"
arrButtons(88) = "Btn$厂商列表$FunctionLabel('" & InstallDir &"Editor/Lable/PE_ProducerList.htm','400','450')$LabelIco\PE_Producer.gif"
arrButtons(89) = "Btn$显示作品集排行$FunctionLabel('" & InstallDir &"Editor/Lable/PE_ShowBlogList.htm','400','400')$LabelIco\PE_Blog.gif"
arrButtons(90) = "Btn$显示专题列表$FunctionLabel('" & InstallDir &"Editor/Lable/PE_ShowSpecialList.htm','320','300')$LabelIco\PE_Special.gif"
arrButtons(91) = "Btn$显示注册用户$InsertLabel('ShowTopUser')$LabelIco\PE_user.gif"
arrButtons(92) = "Btn$登录$InsertLabel('ShowAdminLogin')$LabelIco\PE_AdminLogin.gif"
arrButtons(93) = "Btn$导航$InsertLabel('ShowPath')$LabelIco\PE_Path.gif"
arrButtons(94) = "Btn$版权$InsertLabel('Copyright')$LabelIco\PE_Copyright.gif"

查看更多 动易Cms教程  动易Cms模板

来源:模板无忧//所属分类:动易Cms教程/更新时间:2006-05-21
相关动易Cms教程