scute全系列Word下载.docx

上传人:b****1 文档编号:1078778 上传时间:2023-04-30 格式:DOCX 页数:22 大小:26.54KB
下载 相关 举报
scute全系列Word下载.docx_第1页
第1页 / 共22页
scute全系列Word下载.docx_第2页
第2页 / 共22页
scute全系列Word下载.docx_第3页
第3页 / 共22页
scute全系列Word下载.docx_第4页
第4页 / 共22页
scute全系列Word下载.docx_第5页
第5页 / 共22页
scute全系列Word下载.docx_第6页
第6页 / 共22页
scute全系列Word下载.docx_第7页
第7页 / 共22页
scute全系列Word下载.docx_第8页
第8页 / 共22页
scute全系列Word下载.docx_第9页
第9页 / 共22页
scute全系列Word下载.docx_第10页
第10页 / 共22页
scute全系列Word下载.docx_第11页
第11页 / 共22页
scute全系列Word下载.docx_第12页
第12页 / 共22页
scute全系列Word下载.docx_第13页
第13页 / 共22页
scute全系列Word下载.docx_第14页
第14页 / 共22页
scute全系列Word下载.docx_第15页
第15页 / 共22页
scute全系列Word下载.docx_第16页
第16页 / 共22页
scute全系列Word下载.docx_第17页
第17页 / 共22页
scute全系列Word下载.docx_第18页
第18页 / 共22页
scute全系列Word下载.docx_第19页
第19页 / 共22页
scute全系列Word下载.docx_第20页
第20页 / 共22页
亲,该文档总共22页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

scute全系列Word下载.docx

《scute全系列Word下载.docx》由会员分享,可在线阅读,更多相关《scute全系列Word下载.docx(22页珍藏版)》请在冰点文库上搜索。

scute全系列Word下载.docx

2)EditorWysiwygModecss设为:

CuteSoft_Client/example.cs,需要把example.css文件放到该目录下。

3)FilesPath设为:

CuteSoft_Client/CuteEditor,设置CuteEditor目录的路径

6、控件的调用代码如下:

%@RegisterTagPrefix=‰CE‰Namespace=‰CuteEditor‰

Assembly=‰CuteEditor‰%>

如果是按照第4步从工具箱中拖放到页面的话,则此代码会自动生成,不需要要手动添加。

CE:

EDITORid=‰Editor1‰runat=‰server‰Width=‰700px‰

FilesPath=‰~/CuteSoft_Client/CuteEditor/‰EditorWysiwygModeCss=‰../example.css‰ThemeType=‰Office2022_BlueTheme‰>

/CE:

EDITOR>

或者

CE:

EditorID=‰ce1‰runat=‰server‰

EditorWysiwygModeCss=‰~/Admin/CuteSoft_Client/CuteEditor/Themes/example.css‰ThemeType=‰Office2022_BlueTheme‰>

Editor>

可修改CuteSoft_Client\CuteEditor\Configuration\AutoConfigure文件夹下的文件,改便CuteEditor工具栏按钮的显示或排列。

可修改文件

CuteSoft_Client\CuteEditor\Configuration\Shared\Common.config来添加字体。

7、修改Web.config文件

appSettings>

addkey=‰DictionaryFolder‰value=‰bin‰/>

/appSettings>

system.web>

//注本节代码在.net2.0下是否需要设置,本人未验证。

browserCaps>

tagwriter=System.Web.UI.HtmlTextWriter

/browserCaps>

/system.web>

二、基本属性:

EditorWysiwygModeCss:

设置样式

ThemeType:

设置风格

AutoConfigure:

选择功能是简单还是复杂的

Text:

设置加载时候默认内容

MaxHTMLLength:

设置最大长度

BreakElement:

默认“回车”产生什么HTML

URLType:

没发现有什么区别

ResizeMode:

自动长度(长度设置的几中形式)

ReadOnly:

是否为只读

CustomCulture:

设置语言类型china为zh-cn

EditCompleteDocument:

设置是否完整的HTML页面代码(也就是说是不是包括html头)AllowPasteHtml:

是否允许粘帖HTML代码

EnableContextMenu:

在文本里是否显示右键菜单

三、CuteEditor文件夹里的配置

1)控制工具拦显示:

在CuteSoft_Client/CuteEditor/Configuration/AutoConfigure里设置

2)控制右键显示:

CuteSoft_Client/CuteEditor/Configuration/ContextMenuMode里设

3)设置权限:

CuteSoft_Client/CuteEditor/Configuration/Security里设置

例如要设置各种组件的大小等属性限制,如控制上传文件的大小等,可在

CuteSoft_Client/CuteEditor/Configuration/Security修改“Security”文件夹中的“Default.config”文件即可

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

?

xmlversion=‰1.0‰encoding=‰utf-8‰?

>

configuration>

securityname=‰RestrictUploadedImageDimension‰>

true/security>

//是否限制上传图象尺寸

securityname=‰OverWriteExistingUploadedFile‰>

false/security>

//如果上传的文件已经存在,是否将其覆盖

securityname=‰UseTimeStampRenameUploadedFiles‰>

//重命名为时间

securityname=‰AutoResizeUploadedImages‰>

//是否自动调整上传图象

securityname=‰MaxImageWidth‰>

1024/security>

//上传图象的最大宽度securityname=‰MaxImageHeight‰>

768/security>

//上传图象的最小宽度securityname=‰MaxImageSize‰>

1000/security>

//上传图象文件的最大值securityname=‰MaxMediaSize‰>

100/security>

//上传媒体文件的最大值securityname=‰MaxFlashSize‰>

//上传Flash文件的最大值securityname=‰MaxDocumentSize‰>

10000/security>

//文档最大值

securityname=‰MaxTemplateSize‰>

//模板最大值

securityname=‰ImageGalleryPath‰>

~/uploads/security>

//图象文件上传路径

securityname=‰MediaGalleryPath‰>

//媒体文件上传路径

securityname=‰FlashGalleryPath‰>

//Flash文件上传路径securityname=‰TemplateGalleryPath‰>

~/templates/security>

//模板路径securityname=‰FilesGalleryPath‰>

//文件库路径

securityname=‰MaxImageFolderSize‰>

102400/security>

//图象文件夹最大值securityname=‰MaxMediaFolderSize‰>

//媒体文件夹最大值securityname=‰MaxFlashFolderSize‰>

//Flash文件夹最大值

securityname=‰MaxDocumentFolderSize‰>

//文档文件夹最大值

securityname=‰MaxTemplateFolderSize‰>

//模板文件夹最大值

securityname=‰ThumbnailWidth‰>

80/security>

//最小宽度

securityname=‰ThumbnailHeight‰>

//最小高度

securityname=‰ThumbnailColumns‰>

5/security>

//最小列数

securityname=‰ThumbnailRows‰>

3/security>

//最小行数

securityname=‰AllowUpload‰>

//是否允许上传

securityname=‰AllowModify‰>

//是否允许修改

securityname=‰AllowRename‰>

//是否允许重命名securityname=‰AllowDelete‰>

//是否允许删除

securityname=‰AllowCopy‰>

//是否允许复制

securityname=‰AllowMove‰>

!

--thisisrenametoo-->

//是否允许移动

securityname=‰AllowCreateFolder‰>

//是否允许创建文件夹securityname=‰AllowDeleteFolder‰>

//是否允许删除文件夹securityname=‰ImageFilters‰>

//这里过滤(设置)图象文件格式

item>

.jpg/item>

.jpeg/item>

.gif/item>

.png/item>

/security>

securityname=‰MediaFilters‰>

//这里过滤(设置)媒体文件格式

.avi/item>

.mpg/item>

.mpeg/item>

.mp3/item>

securityname=‰DocumentFilters‰>

//这里过滤(设置)文档文件格式

.txt/item>

.doc/item>

.pdf/item>

.zip/item>

.rar/item>

.swf/item>

.htm/item>

/configuration>

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

4)设置工具拦按钮具体功能:

CuteSoft_Client/CuteEditor/Configuration/Shared里设置

5)设置工具拦按钮具体功能:

6)设置语言:

CuteSoft_Client/CuteEditor/Configuration/Languages里设置

7)添加字体:

CuteSoft_Client/CuteEditor/Configuration/Shared/Common.config里设置

感觉CuteEditor每处都可以改变,因为它整体思路都是用摸板,具体体现形式写在配置文件里面。

用户修改配置文件或是它提供的属性就可以实现自己的功能!

四、CuteEditor的服务器端控制

1)设置编辑器的默认文本:

Editor1.Text=‰DefaultText‰;

//服务器端方法

vareditor=

document.getElementById(%=Editor1.ClientID%>

);

//JavaScript方法vareditorText=editor.getHTML();

2)修改文件的上传目录:

Editor1.SetSecurityGalleryPath(‰~/uploads/jpg‰);

修改上传文件的总大小(以Flash为例):

Editor1.SetSecurityMaxFlashFolderSize(1000);

修改单个上传文件的大小(以Flash为例):

Editor1.SetSecurityMaxFlashSize(kb);

//默认KB为单位

3)多用户文件夹

由于上传的文件统一被放置到uploads文件夹中,可以通过程序控制为每个用户建立一个上传的文件夹。

代码如下:

usingSystem.IO;

stringusername=Session[‰username‰].ToString();

fullPath=Server.MapPath(‰uploads\\‰)+username;

if(!

Directory.Exists(fullPath))

{

Directory.CreateDirectory(fullPath);

}

Editor1.SetSecurityGalleryPath(‰~/uploads/‰+username);

五、动态分配CuteEditor上传路径

就是SetSecurityGalleryPath这个方法可以设置上传路径,这样就可以实现每个用户独立一个文件,甚至可以分配空间大小等。

以图片为例

Editor1.SetSecurityImageBrowserPath(path);

//设置浏览图片路径

Editor1.SetSecurityImageGalleryPath(path);

//设置图片上传路径

Editor1.SetSecurityMaxImageDimension(width,height);

//设置图片上传尺寸Editor1.SetSecurityMaxImageSize(kb);

//设置图片上传文件大小

其他还有类似的方法,可以慢慢研究。

六、使cuteeditor支持中文上传

CuteEditor是个非常强大的编辑器,不过也有不尽任意的地方,例如上传不支持中文,不过也有方法解决。

打开CuteSoft_Client\CuteEditor\Configuration\Security\Default.config文件找到

securityname=‰filenamePattern‰/>

把他改成

security

name=‰filenamePattern‰>

^[a-zA-Z0-9\._\s-\u4e00-\u9fa5]+$/security>

篇二:

Unit1

Unit1--------Exercise1

Cara.Whatyourname?

Aam,areBis,isCare,amDare,are

thatpet!

It?

sacat.

AofBatCafterDlike

3.Actouttheconversationsonthepicture.Thenintroduceyourselfourpartner.

AofB/CwithDto

4.------Morning,MsWhite-------__________

AGoodmorning,GinaBHello,GinaCHi,GinaDMorningGina

5.------Goodafternoon,Carol.

-------_________,Iamlate.

-------_________

AExcuseme.That?

sallright.BSorry.It?

sOK.

CSorry.That?

sallright.DExcuseme.It?

6.Somenamesare_________boys________menlikeCharles.

Afor,orB/,orCof,andDfor,and

7.Pleasewrite_________hernameintheAddressList.

A/BaboutCinDdown

8.Give________anEnglishnameyoulike.

AyourselvesB/CyourDyourself

9.Choosethegirl?

sname._________

ABenBEmilyCAlanDConnie

10.Isee_______adforsomecheapCDs.

A/BaCanDthe

11.Theboyis________young________writealetter.

Aso,toBtoo,toCto,toDso,with

12.-----________.Nicetomeetyou,too.

AGoodafternoonBNicetomeetyouCGladtomeetyouDMorning

13.Whoisthat?

________Dennis.

AHenameisBHisnameCIt?

sDIt

14.What?

sthis?

______aflag.

AThis?

sBThisisCIt?

15.Thankyouverymuch._______

AThankyouBOKCThanksDNotatall.

16.What?

sthis_______English?

__________

A/;

Anotebook.B/;

sanotebook.Cin;

AnotebookDin;

sanotebook

17.DrawaTV,please._________

AVerygoodBThankyouCIdon?

tDAllright

18.Canyou______it?

Yes.N-O-S-E,nose.

AwriteBspellCreadDlearn

19.Wendy,__________isthis?

sX.

AwhatcolourBWhatcolourCWhatDwhatletter

20.Nowyou________,Ican________theABCsong.

Asea;

thinkBsea;

spellCsee;

singDsee;

thing

21.Thisismyphoto.It?

svery_______.

AniceBwellCokDkind

22.Redismyfavoritecolor.Blueismyfavoritecolor,_________

AtoBtwoCtooDalso

23.What?

stheChinese________“flag”?

Qizhi.

AatBforCinDwith

24.------Let?

swatchTV.

-----That________good.

AsoundsBissoundCsoundDissounds

25.------Amy,________orangesorange,please.

AisBamCcolorDlike

26.Thegirl_________isJulia.

AonyellowBinyellowConayellowDinayellow

27.WhatcolorisJohn?

sfootball?

s__________.

AawhiteBablackCblackandwhiteDblackwithwhite

28.Thesh

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 工程科技 > 环境科学食品科学

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2