1、 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=70
2、0px FilesPath=/CuteSoft_Client/CuteEditor/EditorWysiwygModeCss=./example.css ThemeType=Office2022_BlueTheme/CE:EDITOR 或者 CE:Editor ID=ce1 runat=server EditorWysiwygModeCss=/Admin/CuteSoft_Client/CuteEditor/Themes/example.css ThemeType=Office2022_BlueTheme Editor 可修改CuteSoft_ClientCuteEditorConfigura
3、tionAutoConfigure文件夹下的文件,改便 CuteEditor工具栏按钮的显示或排列。 可修改文件 CuteSoft_ClientCuteEditorConfigurationSharedCommon.config来添加字体。 7、修改Web.config文件 appSettings add key=DictionaryFolder value=bin / /appSettings system.web/注本节代码在.net2.0下是否需要设置,本人未验证。 browserCaps tagwriter=System.Web.UI.HtmlTextWriter /browserCa
4、ps /system.web 二、基本属性: EditorWysiwygModeCss :设置样式 ThemeType :设置风格 AutoConfigure :选择功能是简单还是复杂的 Text :设置加载时候默认内容 MaxHTMLLength :设置最大长度 BreakElement :默认“回车”产生什么HTML URLType :没发现有什么区别 ResizeMode :自动长度(长度设置的几中形式) ReadOnly :是否为只读 CustomCulture :设置语言类型 china 为zh-cn EditCompleteDocument :设置是否完整的HTML页面代码(也就是
5、说是不是包括html头) AllowPasteHtml :是否允许粘帖HTML代码 EnableContextMenu :在文本里是否显示右键菜单 三、CuteEditor文件夹里的配置 1)控制工具拦显示:在CuteSoft_Client/CuteEditor/Configuration/AutoConfigure 里设置 2)控制右键显示:CuteSoft_Client/CuteEditor /Configuration/ContextMenuMode里设 置 3)设置权限:CuteSoft_Client/CuteEditor /Configuration/Security里设置 例如要设
6、置各种组件的大小等属性限制,如控制上传文件的大小等,可在 CuteSoft_Client/CuteEditor/Configuration /Security修改“Security”文件夹中的“Default.config”文件即可 = ?xml version=1.0 encoding=utf-8 ? configuration security name=RestrictUploadedImageDimensiontrue/security/是否限制上传图象尺寸 security name=OverWriteExistingUploadedFilefalse/security/如果上传的文
7、件已经存在,是否将其覆盖 security name=UseTimeStampRenameUploadedFiles /重命名为时间 security name=AutoResizeUploadedImages/是否自动调整上传图象 security name=MaxImageWidth1024/security/上传图象的最大宽度 security name=MaxImageHeight768/security/上传图象的最小宽度 security name=MaxImageSize1000/security/上传图象文件的最大值 security name=MaxMediaSize100/
8、security/上传媒体文件的最大值 security name=MaxFlashSize/上传Flash文件的最大值 security name=MaxDocumentSize10000/security/文档最大值 security name=MaxTemplateSize/模板最大值 security name=ImageGalleryPath/uploads/security/图象文件上传路径 security name=MediaGalleryPath/媒体文件上传路径 security name=FlashGalleryPath/Flash文件上传路径 security name
9、=TemplateGalleryPath/templates/security/模板路径 security name=FilesGalleryPath/文件库路径 security name=MaxImageFolderSize102400/security/图象文件夹最大值 security name=MaxMediaFolderSize/媒体文件夹最大值 security name=MaxFlashFolderSize/Flash文件夹最大值 security name=MaxDocumentFolderSize/文档文件夹最大值 security name=MaxTemplateFold
10、erSize/模板文件夹最大值 security name=ThumbnailWidth80/security/最小宽度 security name=ThumbnailHeight/最小高度 security name=ThumbnailColumns5/security/最小列数 security name=ThumbnailRows3/security/最小行数 security name=AllowUpload/是否允许上传 security name=AllowModify/是否允许修改 security name=AllowRename/是否允许重命名 security name=A
11、llowDelete/是否允许删除 security name=AllowCopy/是否允许复制 security name=AllowMove !- this is rename too -/是否允许移动 security name=AllowCreateFolder/是否允许创建文件夹 security name=AllowDeleteFolder/是否允许删除文件夹 security name=ImageFilters/这里过滤(设置)图象文件格式 item.jpg/item.jpeg/item.gif/item.png/item /security security name=Medi
12、aFilters/这里过滤(设置)媒体文件格式 .avi/item.mpg/item.mpeg/item.mp3/item security name=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/CuteEdit
13、or /Configuration/Languages里设置 7)添加字体:CuteSoft_Client/CuteEditor /Configuration/Shared/Common.config里设置 感觉 CuteEditor 每处都可以 改变,因为它整体思路都是用摸板,具体体现形式写在配置文件里面。用户修改配置文件或是它提供的属性就可以实现自己的功能! 四、CuteEditor的服务器端控制 1)设置编辑器的默认文本: Editor1.Text = Default Text; /服务器端方法 var editor = document.getElementById(%=Editor1
14、.ClientID %); /JavaScript方法 var editorText = editor.getHTML(); 2)修改文件的上传目录:Editor1.SetSecurityGalleryPath(/uploads/jpg); 修改上传文件的总大小(以Flash为例):Editor1.SetSecurityMaxFlashFolderSize(1000); 修改单个上传文件的大小(以Flash为例):Editor1.SetSecurityMaxFlashSize(kb);/默认KB为单位 3)多用户文件夹 由于上传的文件统一被放置到uploads文件夹中,可以通过程序控制为每个用
15、户建立一个上传的文件 夹。代码如下: using System.IO; string username = Sessionusername.ToString() ; fullPath = Server.MapPath(uploads) + username; if (!Directory.Exists(fullPath) Directory.CreateDirectory(fullPath); Editor1.SetSecurityGalleryPath(/uploads/ + username); 五、动态分配CuteEditor上传路径 就是 SetSecurityGalleryPath这
16、个方法可以设置上传路径,这样就可以实现每个用户独立一个文件,甚至可以分配空间大小等。 以图片为例 Editor1.SetSecurityImageBrowserPath(path);/设置浏览图片路径 Editor1.SetSecurityImageGalleryPath(path);/设置图片上传路径 Editor1.SetSecurityMaxImageDimension(width,height);/设置图片上传尺寸 Editor1.SetSecurityMaxImageSize(kb);/设置图片上传文件大小 其他还有类似的方法,可以慢慢研究。 六、使cuteeditor支持中文上传
17、CuteEditor是个非常强大的编辑器,不过也有不尽任意的地方,例如上传不支持中文,不过也有方法解决。 打开CuteSoft_ClientCuteEditorConfigurationSecurity Default.config文件 找到 security name=filenamePattern / 把他改成 security name=filenamePatterna-zA-Z0-9._s-u4e00-u9fa5+$/security 篇二:Unit 1 Unit 1-Exercise 1 Cara. What your name? A am, areB is ,is C are ,a
18、mD 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.
19、That?s all right. B Sorry. It?s OK. C Sorry.That?s all right. D Excuse me. It? 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
20、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 th
21、at ? _ 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? 15.Thank you very much. _ A Thank you B OK C ThanksD Not at all. 16.What?s this _ English? _ A / ; A notebook. B / ;s a notebook.C in ; A notebook D in ;s a notebook 17.Draw a TV, please. _ A Very goo
22、d 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 ?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 _
23、. 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”?izhi. 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?s _. A a white B a black C black and white D black with white 28.The sh
copyright@ 2008-2023 冰点文库 网站版权所有
经营许可证编号:鄂ICP备19020893号-2