如何写论文?写好论文?免费论文网提供各类免费论文写作素材!
当前位置:免费论文网 > 范文百科 > scute图鉴

scute图鉴

来源:免费论文网 | 时间:2017-01-01 11:31:02 | 移动端:scute图鉴

篇一:CuteEditor高级配置

CuteEditor使用详解 收藏

CuteEditor是一款功能非常强大,支持图片上传、文件下载和word类似的文字编辑器。对于新闻 发布系统和博客之类的系统,是非常的方便的。

一、CuteEditor的配置

1、将以下文件考贝到你站点根目录下的bin内(这些在CuteEditor6.0/bin下都可 以找到)

CuteEditor.dll,

CuteEditor.ImageEditor.dll(6.0增加的EditorImage功能),

CuteEditor.lic(解密文件),

NetSpell.SpellChecker.dll(拼写检查功能)

注:(“.dic”为扩展名的文件是词典保存为纯文本文件的格式。将CuteEditor6.0/bin文件夹里的都拷到站点根目录下的bin内也可以)

2、将CuteSoft_Client文件夹拷贝到项目的根目录

CuteSoft_Client包含CuteEditor文件夹和example.css,放了控件图片,文件之类的数据example.css它指定了 编辑器的样式。(在2.0下可能要把dialog文件夹里面的

getfilethub.aspx删除)

注:FilesPath用来设置所对应的目录,如:

FilesPath="~/admin/CuteSoft_Client/CuteEditor/"

把example.css文件拷贝到相应目录,并设置EditorWysiwygModeCss属性。 如:EditorWysiwygModeCss="/admin/CuteSoft_Client/CuteEditor/themes

/example.css

3、在根目录下建立Uploads的文件夹作为上传图片及附件的根目录

4、将CuteEditor.dll添加到工具箱

先在工具箱空白处右击选择 “添加选择项”,给选项卡添加一外名称为:CuteEditor。再在该选项卡中右击,选择“选择项 ”,在弹出的对话框的“.NET Frameword组件”标签中选择要添加的DLL文件即可。

5、CuteEditor属性设置(假设当前页在根目录下)

1)AutoConfigure设为simple,即选择最简单的界面显示方式

2)EditorWysiwygModecss设为:CuteSoft_Client/example.cs,需要把example.css文件放到该目 录下。

3)FilesPath设为:CuteSoft_Client/CuteEditor,设置CuteEditor目录的路径

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

<%@ Register TagPrefix="CE" Namespace="CuteEditor"

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

<CE:EDITOR id="Editor1" runat="server" Width="700px"

FilesPath="~/CuteSoft_Client/CuteEditor/"EditorWysiwygModeCss="../example.css" ThemeType="Office2003_BlueTheme"></CE:EDITOR>

或者

<CE:Editor ID="ce1" runat="server"

FilesPath="~/admin/CuteSoft_Client/CuteEditor/"

EditorWysiwygModeCss="~/Admin/CuteSoft_Client/CuteEditor/Themes/example.css" ThemeType="Office2003_BlueTheme" ></CE:Editor>

注:

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

可修改文件

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

7、修改Web.config文件

<appSettings>

<add key="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”文件即可

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

<?xml version="1.0" encoding="utf-8" ?>

<configuration>

<security name="RestrictUploadedImageDimension">true</security>//是否限制上传图象尺寸

<security name="OverWriteExistingUploadedFile">false</security>//如果上传的文件已经存在,是否将其覆盖

<security name="UseTimeStampRenameUploadedFiles">true</security> //重命名为时间

<security name="AutoResizeUploadedImages">true</security>//是否自动调整上传图象

<security name="MaxImageWidth">1024</security>//上传图象的最大宽度 <security name="MaxImageHeight">768</security>//上传图象的最小宽度 <security name="MaxImageSize">1000</security>//上传图象文件的最大值 <security name="MaxMediaSize">100</security>//上传媒体文件的最大值 <security name="MaxFlashSize">100</security>//上传Flash文件的最大值 <security name="MaxDocumentSize">10000</security>//文档最大值

<security name="MaxTemplateSize">1000</security>//模板最大值

<security name="ImageGalleryPath">~/uploads</security>//图象文件上传路径

<security name="MediaGalleryPath">~/uploads</security>//媒体文件上传路径

<security name="FlashGalleryPath">~/uploads</security>//Flash文件上传路径 <security name="TemplateGalleryPath">~/templates</security>//模板路径 <security name="FilesGalleryPath">~/uploads</security>//文件库路径

<security name="MaxImageFolderSize">102400</security>//图象文件夹最大值 <security name="MaxMediaFolderSize">102400</security>//媒体文件夹最大值 <security name="MaxFlashFolderSize">102400</security>//Flash文件夹最大值

<security name="MaxDocumentFolderSize">102400</security>//文档文件夹最大值

<security name="MaxTemplateFolderSize">102400</security>//模板文件夹最大值

<security name="ThumbnailWidth">80</security>//最小宽度

<security name="ThumbnailHeight">80</security>//最小高度

<security name="ThumbnailColumns">5</security>//最小列数

<security name="ThumbnailRows">3</security>//最小行数

<security name="AllowUpload">true</security>//是否允许上传

<security name="AllowModify">true</security>//是否允许修改

<security name="AllowRename">true</security>//是否允许重命名 <security name="AllowDelete">true</security>//是否允许删除

<security name="AllowCopy">true</security>//是否允许复制

<security name="AllowMove">true</security> <!-- this is rename too -->//是否允许移动

<security name="AllowCreateFolder">true</security>//是否允许创建文件夹 <security name="AllowDeleteFolder">true</security>//是否允许删除文件夹 <security name="ImageFilters">//这里过滤(设置)图象文件格式

<item>.jpg</item>

<item>.jpeg</item>

<item>.gif</item>

<item>.png</item>

</security>

<security name="MediaFilters">//这里过滤(设置)媒体文件格式

<item>.avi</item>

<item>.mpg</item>

<item>.mpeg</item>

<item>.mp3</item>

</security>

<security name="DocumentFilters">//这里过滤(设置)文档文件格式

<item>.txt</item>

<item>.doc</item>

<item>.pdf</item>

<item>.zip</item>

<item>.rar</item>

<item>.avi</item>

<item>.mpg</item>

<item>.mpeg</item>

<item>.swf</item>

<item>.jpg</item>

<item>.jpeg</item>

<item>.gif</item>

<item>.png</item>

<item>.htm</item>

</security>

</configuration>

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

4)设置工具拦按钮具体功能:CuteSoft_Client/CuteEditor/Configuration/Shared 里设置

5)设置工具拦按钮具体功能:CuteSoft_Client/CuteEditor/Configuration/Shared 里设置

6)设置语言:CuteSoft_Client/CuteEditor /Configuration/Languages里设置

7)添加字体:CuteSoft_Client/CuteEditor /Configuration/Shared/Common.config里设置

感觉 CuteEditor 每处都可以 改变,因为它整体思路都是用摸板,具体体现形式写在配置文件里面。用户修改配置文件或是它提供的属性就可以实现自己的功能!

四、CuteEditor的服务器端控制

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

Editor1.Text = "Default Text"; //服务器端方法

var editor =

document.getElementById('<%=Editor1.ClientID %>'); //JavaScript方法 var editorText = editor.getHTML();

2)修改文件的上传目录:Editor1.SetSecurityGalleryPath("~/uploads/jpg");

修改上传文件的总大小(以Flash为例):Editor1.SetSecurityMaxFlashFolderSize(1000); 修改单个上传文件的大小(以Flash为例):Editor1.SetSecurityMaxFlashSize(kb);//默认KB为单位

3)多用户文件夹

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

using System.IO;

string username = Session["username"].ToString() ;

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

if (!Directory.Exists(fullPath))

{

Directory.CreateDirectory(fullPath);

}

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

五、动态分配CuteEditor上传路径

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

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

以图片为例

Editor1.SetSecurityImageBrowserPath(path);//设置浏览图片路径

Editor1.SetSecurityImageGalleryPath(path);//设置图片上传路径

Editor1.SetSecurityMaxImageDimension(width,height);//设置图片上传尺寸 Editor1.SetSecurityMaxImageSize(kb);//设置图片上传文件大小

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

六、使cuteeditor支持中文上传

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

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

<security name="filenamePattern" />

把他改成

<security

name="filenamePattern">^[a-zA-Z0-9\._\s-\u4e00-\u9fa5]+$</security>

篇二:Unit 1

Unit 1--------Exercise 1

Cara. What your name?

A am, areB is ,is C are ,amD are ,are

that pet! It?s a cat.

A of B at C afterD like

3.Act out the conversations on the picture. Then introduce yourself our partner.

A of B /C withD to

4.------Morning , Ms White -------__________

A Good morning, Gina B Hello, GinaC Hi, Gina D Morning Gina

5.------Good afternoon, Carol.

-------_________, I am late.

-------_________

A Excuse me. That?s all right. B Sorry. It?s OK.

C Sorry.That?s all right. D Excuse me. It?s OK.

6.Some names are _________ boys ________ men like Charles.

A for, or B / ,orC of ,andD for , and

7.Please write _________ her name in the Address List.

A /B about C in D down

8.Give ________ an English name you like .

A yourselves B/C your D yourself

9.Choose the girl?s name. _________

A Ben B Emily C Alan D Connie

10.I see _______ ad for some cheap CDs.

A /B a C an D the

11.The boy is ________ young ________ write a letter.

A so , to B too , to C to , to D so , with

12.----- ________ . Nice to meet you, too.

A Good afternoonB Nice to meet youC Glad to meet you D Morning

13.Who is that ? ________ Dennis.

A He name is B His nameC It?sD It

14.What?s this? ______ a flag.

A This?s B This is C It?sD It

15.Thank you very much. _______

A Thank you B OK C ThanksD Not at all.

16.What?s this _______ English? __________

A / ; A notebook. B / ; It?s a notebook.C in ; A notebook D in ; It?s a notebook

17.Draw a TV, please. _________

A Very good B Thank youC I don?tD All right

18.Can you ______ it ? Yes. N-O-S-E , nose.

A writeB spell C read D learn

19.Wendy, __________ is this ? It?s X.

A what colour B What colour C What D what letter

20.Now you ________ , I can ________ the ABC song.

A sea ; thinkB sea ; spell C see ; singD see ; thing

21.This is my photo. It?s very _______.

A nice B well C okD kind

22.Red is my favorite color. Blue is my favorite color ,_________

A to B two C tooD also

23.What?s the Chinese ________ “flag”?Qizhi.

A at B forC in D with

24.------Let?s watch TV.

-----That ________ good.

A soundsB is sound C soundD is sounds

25.------ Amy ,________ oranges orange, please.

A is B am C colorD like

26.The girl _________ is Julia.

A on yellowB in yellow C on a yellow D in a yellow

27.What color is John?s football? It?s __________.

A a white B a black C black and white D black with white

28.The shop isn?t pen. It?s ______

A closing B closed C closes D close

29.The dictionary is a good helper ______us.

A inB on C for D to

30.Let?s listen. Then work _______ pairs.

A / B for C in D at

31.My sister is _____. She can?t go to school.

A too young B too smallC very young D very small

32.Sorry, I can?t help you now. ________

A That?s right. B That?s all right. C You?re welcome.

33.How do you do? __________

A OK. B Good morning! C Thank you.D How do you do?

34.Mona is __________ .

A in Grade 1, Class 9 B Grade 1, Class 9 C in Class 9,Grade 1 D Class 9, Grade 1

35.What?s this in English? ____________

A It a bee. B It?s bee. C It?s a bee D This is a bee.

36.--------See you later!

--------_________ .

A Thank you B Excuse meC Hello D See you

37.“世界卫生组织”的缩写是:__________

A W.C.B WTO C WHOD MTV

38._______ you spell your name , please?

A Am B Is C Are D Can

39.That is a ______ sharpener.

A pen B pencil C ruler D eraser

40.Now , class , let?s listen and write. _______.

A Very good B Sorry , I don?t know C Bye D OK

Unit 2-------Exercise 1

1.What?s that ? It?s _________ .

A Letter a B letter A C letter a D latter a

2.“Nice to see you.”means __________.

A Nice to you B Nice you C Nice to glad you D Nice to meet you

3.Father is the opposite of _________ .

A motherB brother C kidD friend

4.Identification means _________

A IT B INC IDD IF

5.______ to our school .

A Well comeB Wellcome C welcomeD Welcome

6.Bob is my frend . Dennis is my friend, _________

A twoB to C tow D too

7.Glad to meet you .___________.

A Nice to meet you, too . B Nice to see you,too.

C Glad to see you, too.D Glad to meet you

8.What?s that ? I ________ it?s a flag.

A thank B guess C nameD like

9._________ the picture, it?s a kite.

A Look B See C Look at D See

10. Liuhuan is a ________

A grate singer B grade sing C great sing D great singer

11.________ is the boy over there ? My brother.

A What B Which C Who?s D Who

12.“工商管理硕士”的缩写是:______

A NBA B MBAC CBAD HB

13.“Thank you . That?s all right.”“That?s all right. ”means________

A Sorry.B It doesn?t matter . C You?re welcome.D Thank you , too.

14.Thanks _______ your help.

A / B to C ofD for

15.How are you ? __________

A I?m good .B I?m 13. C I fine. And you ?D Fine ,thanks.

16.In your house, you can?t find ________ .

A tank B sofaC mall D A and C

17.If you want to know time, you?ll look at a __________.

A ball B clock C coffee D rose

18.Wang Fei?s songs are very _______.

A well B like C popD hot

19.A rose ! ________ it _______ your name?

A.DO, /B.DO,sounds C.Does, /D.Does, sound

20.I like ________ coffee.

A.tall B.fine C.a D.hot

21.Who is your grandfather? The ________ one is.

A.late B.tallC.pop D.big

22.“智商、情商、逆境商”的缩写分别是:___________

A.QQ IQ EQ B.EQ IQ AQC.IQ EQ AQD.IQ EQ QQ

23.Hate is the opposite of ________

A.hope B.like C.lateD.look

24.I am before S, I am after Q. What am I ?

A. B.P C.U D.R

25.Which is different?_______

A.Good B.Goodbye C.Bye-bye D.Bye

26.SOS means _________

A.see our sheepB save our sheep C.see our ship D.save our ship

27.Write ______ your name , please.

A.out B.down C.forD.of

28.The students work ______ . They help each other.

A.pairly B.in pair C.in pairsD.pair

29.Does he ______ TV in the afternoon? Yes, he does.

A.watchesB.watch C.read D.look

30.“Let?s” means ___________

A.Let us B.Let me C.Let is D.Let sing

31.世界贸易组织的缩写是:

A.WTO B.WHOC.W.C. D.MTV

32.Yellow +blue =________

A.white B.green C.orange D.black

33.Black tea means __________

A.黑茶 B.纯茶 C.浓茶 D.红茶

34.You can ________ it green.

A.color B see C.look D.write

35.MTV means _________

A.music tv B.movie TVC.music TVD.movie tv

36.“The English alphabet” we can also say ________.

A.English names B.a b c C.A B CD.NBA

37.Greenhouse means _______

A.绿房子 B.没有建好的房子 C.危险的房子D.生手、没有经验的人

38.W.C. means ________

A.water closet B.washing room C.washing closetD.water room

39.Tom is a good boy. Jim is a good boy,________.

A.two B.to C.tooD.also

40.Chinese flag is _________.

A.greenB.red C.blue D.black

Unit 3-----Exercise 1

1.Excuse me ,_______ you Mark?

A.isB.was C.areD.am

2.What?s ______ name ? _______ is Jenny.

A.her;Her name?s B.her;Her name C.his;His name?s D.his;His name

3.That is Ms Smith. _______ is an English teacher.

A.He?s B.He C.She?s D.She

4.Is his name Bruce ?Yes, _____ is .

A.heB.she C.it D.him

5.My name is John Dale White._______ is my first name.

A.John B.DaleC.White

6.Five + two =________?

A.Zero B.six C.seven

7._______ first name is Linda.

A.She B.He C.Her

8._______–six = four

A.Zero B.ten C.nine

9.His name is Bill Grates. We call him ______.

A.Mrs Gates B.Miss Gates C.Mr Gates

10.Her full name is Tanya Lopez . Tanya is her _______ .

A.first name B last name C.middle name

11.Look at that boy! He is Jim Allen Green. Allen is his ______.

A.first name B last name C.middle name

12.What?s your _____ number, Peter ? It?s 666888.

A.teliphone B.telephone C.telephones

13.This is _______ teacher .

A.my ChineseB.my aC.me

14.Nice to meet you .______

A.Nice to meet you. B.How are you ? C. Thanks

15.Your picture is very good. ______

A.No, it isn?t. B.It?s not good. C.Yes,it is.

16.______ is a cat ._______ name is Mimi.

A.It; It?sB.It?s; It C.It; It

17.Look! This is ______ ID card. Is it ______?

A.an, your B./,yours C.an, yours

18.How do ______ spell _____ name?

A.you ,youB.your, your C.your, you

19._____ is a nice girl,_____ name is Betty.

A.She, sheB.She, sheC.Her, her

20.Write our phone number _______ a piece of paper.

A.down B.on C.in

21.How are you ? I?m ______ , thank you .

A.fineB.goodC.right D.John White D.eight D.His D.Ten D.Mr Bill D.given name D.given nameD telephone?sD.Chinese my D.Nice to meet you, too. D.Thank you. D.It; Its D./, yourD.you, yourD.Her,sheD.atD.hello

篇三:上海市高考grammar and vocabulary 新题型训练(一)(附答案)

复旦附中2014年上海市高考英语语法词汇新题型训练(一)

II. Grammar and Vocabulary

Section A

Directions: After reading the passages below, fill in the blanks to make the passages

coherent and grammatically correct. For the blanks with a given word, fill in each blank with the proper form of the given word; for the other blanks, use one word that best fits each blank.

( A )

Let?s say “Hi” to this cute yellow duck! Thousands of people (crowd)

the harbor of Kaohsiung city(高雄市), Taiwan to welcome this giant floating yellow rubber duck.

The 59-foot-tall duck is a copy from a bathtub toy26 (love) by children. It

was created by a Dutch(荷兰的) artist, has taken the duck around the world( send) a message of happiness.

The duck now is floating happily on the water of Kaohsiung city. It will not

October20.Later, it will begin visiting other cities in Taiwan. It bring tens of millions of dollars.

(B)

Eric Chen, a 17-year-old student from California, U.S.A., was the big winner of

this year?s Google Science Fair(谷歌科学挑战赛). He introduced new medicine to fight Flu viruses, such as H7N9, (pose)a great threat to the world and have

already killed millions of people.

“I felt like this was a really (urge) problem and I thought, ?

can?t I find a new anti-flu medicine??” Chen said. Then he started his research wowed the judges of the Google Science Fair.

As the winner, Chen got a $50,000 scholarship and a trip to the Galapagos

Islands(加拉帕哥斯群岛). He plans to use part of the money to develop a (powerful ) flu medicine.

“I really like 38 (do) research,” Chen said. “I?m doing workwill make the world a better place.”

参考答案

25.crowded 26.loved 27.who 28.to send 29.until 30. is expected

31. a 32. against 33.pose 34.urgent 35.Why 36.and 37. more powerful

38.doing 39. that


scute图鉴》由:免费论文网互联网用户整理提供;
链接地址:http://www.csmayi.cn/show/136811.html
转载请保留,谢谢!
相关文章