兼容IE,Firefox的web编辑器 (WeisEditor)
.net Web编辑器 (兼容IE,Firefox)名称: WeisEditor 1.0 (.net控件)
环境:.net1.1
作者:gloot
QQ: 345268267
Blog: blog.sina.com.cn/tecz
下载的编辑器资料解压后有两个文件夹(EditorExm实便项目, WeisEditor编辑器源码) 以及'描述.txt'
项目所需文件及文件夹
WeisEditor.dll
js/jsClass.js (需加载到编辑器所在页面 Head区域)
WeisEditor 文件夹
upload (上传文件)
WeisEditor 与 upload 应放于同一目录下
或修改WeisEditor/loadImage.aspx 中的
<script type="c#" runat="server">
private void upBtn_Click(object sender, System.EventArgs e)
{
string rv = (new WeisEditor.loadIMG()).UploadImg(upImg,"../upload/","1");
string str = "<script type=\"text/javascript\">setValue('"+rv+"');window.close();<"+"/script>";
string key = System.Guid.NewGuid().ToString();
Page.RegisterStartupScript (key,str);
return;
}
</script>
中的"../upload/"部分
预览:
下面是预览
[img]http://static5.photo.sina.com.cn/bmiddle/5116ad5f4528d745a73b4[/img]说明:
web.Config 里应加入如下代码<appSettings>
<add key="SiteUrl" value="http://localhost/EditorExm/" />
</appSettings>
修改地区编码为:gb2312
<globalization
requestEncoding="gb2312"
responseEncoding="gb2312"
/>
编辑器属性说明
把编辑器布署到页面后格式为:cc1:WeisREditor id="WeisREditor1" runat="server" VPath="" PBackColor="#ffffff"></cc1:WeisREditor>
参数:
Text 内容输出
PWidth 编辑器宽度 (100%、600px等)
PHeight 编辑器高度
PBackColor 编辑器背景
BackColor_Url编辑器背影图片(在编辑器里背景图片相对不动)
VPath 路径配置 (最设好为绝对路径,也可设置为虚拟路径) 以WeisEditor所在位置为准
比如:WeisEditor在根目录下的News文件夹下
则VPath = "http://www.yourdomain.com/News/" 收藏了。。
咋没人看呢
一直用fckeditor,兼容性非常好 还行。有洞否可以提出来,
我准备改版了这个太不好看了.
页:
[1]
