代码拉取完成,页面将自动刷新
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>WordPaster For FCKEditor2.x,ExtJS</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link type="text/css" rel="Stylesheet" href="WordPaster/w.css"/>
<link type="text/css" rel="stylesheet" href="extjs/resources/css/ext-all.css"/>
<script type="text/javascript" src="extjs/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="extjs/ext-all.js"></script>
<script type="text/javascript" src="WordPaster/jquery.min.js"></script>
<script type="text/javascript" src="fckeditor/fckeditor.js"></script>
<script type="text/javascript" src="WordPaster/w.edge.js" charset="utf-8"></script>
<script type="text/javascript" src="WordPaster/w.app.js" charset="utf-8"></script>
<script type="text/javascript" src="WordPaster/w.file.js" charset="utf-8"></script>
<script type="text/javascript" src="WordPaster/w.js"></script>
</head>
<body>
<input id="btnShowWindow" value="打开FCK编辑器窗口" type="button" />
<script type="text/jscript" language="javascript">
//fix:IE9错误,对象不支持“createContextualFragment”属性或方法。
if ((typeof Range !== "undefined") && !Range.prototype.createContextualFragment) {
Range.prototype.createContextualFragment = function (html) {
var frag = document.createDocumentFragment(),
div = document.createElement("div");
frag.appendChild(div);
div.outerHTML = html;
return frag;
};
}
var win;
WordPaster.getInstance({
PostUrl: "http://localhost:2094/asp.net/upload.aspx"
}).Load();//加载控件
function FCKeditor_OnComplete(editorInstance)
{
WordPaster.getInstance().SetEditor(editorInstance);
}
Ext.get("btnShowWindow").on("click", function()
{
if (!win)
{
win = new Ext.Window({
title: "窗口",
layout: "border",
width: 500,
height: 400,
modal: false,
closeAction: "hide",
plain: true,
maximizable: true,
items: [
{
xtype: "textarea",
name: "content",
title: "组织人员",
region: "center",
listeners: {
"render": function(f)
{
fckEditor = new FCKeditor("content");
fckEditor.ToolbarSet = "Basic";
fckEditor.Height = 400;
fckEditor.BasePath = "fckeditor/";
//fckEditor.Config['CustomConfigurationsPath'] = "/fckeditor/fckconfig.js"
fckEditor.ReplaceTextarea();
}
}
}
],
buttons: [
{ text: "获取内容", handler: function()
{
var f = FCKeditorAPI.GetInstance('content');
alert(f.Name);
alert(f.GetData());
}
},
{ text: "关闭", handler: function() { win.hide(); } }
]
});
}
win.show(this);
});
</script>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。