WeiWeiXinNet/admin/AttachEvents.aspx

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ Page Language="C#" AutoEventWireup="true" %>

<script language="C#" runat="server">
	protected void Page_Load(object sender, EventArgs e)
	{
		CKEditor1.CKEditorInstanceEventHandler = new System.Collections.Generic.List<object>();
	//	CKEditor1.CKEditorInstanceEventHandler.Add(new object[] { "instanceReady", "function (evt) { alert('Event Handler attached on CKEditorInstanceEventHandler to editor: ' + evt.editor.name);}" });

        CKEditor1.config.toolbar = new object[]
			{
				new object[] { "Source", "-", "NewPage", "Preview", "-", "Templates" },
				new object[] { "Cut", "Copy", "Paste", "PasteText", "PasteFromWord", "-", "Print", "SpellChecker", "Scayt" },
				new object[] { "Undo", "Redo", "-", "Find", "Replace", "-", "SelectAll", "RemoveFormat" },
				new object[] { "Form", "Checkbox", "Radio", "TextField", "Textarea", "Select", "Button", "ImageButton", "HiddenField" },
				"/",
				new object[] { "Bold", "Italic", "Underline", "Strike", "-", "Subscript", "Superscript" },
				new object[] { "NumberedList", "BulletedList", "-", "Outdent", "Indent", "Blockquote", "CreateDiv" },
				new object[] { "JustifyLeft", "JustifyCenter", "JustifyRight", "JustifyBlock" },
				new object[] { "BidiLtr", "BidiRtl" },
				new object[] { "Link", "Unlink", "Anchor" },
				new object[] { "Image", "Flash", "Table", "HorizontalRule", "Smiley", "SpecialChar", "PageBreak", "Iframe" },
				"/",
				new object[] { "Styles", "Format", "Font", "FontSize" },
				new object[] { "TextColor", "BGColor" },
				new object[] { "Maximize", "ShowBlocks", "-", "About" }
			};
    
        
        
    
    }
</script>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
	<title>Attaching Events &mdash; CKEditor for ASP.NET Sample</title>
	<link href="sample.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<form id="weweixin_form" runat="server">
		<h1 class="samples">
			CKEditor for ASP.NET Sample &mdash; Attaching Events
		</h1>
		<div class="description">
		<p>
			In order to attach a function to an event in a single editor instance, use the following method:
		</p>
<pre class="samples">CKEditor1.CKEditorInstanceEventHandler = <span style="color: #0000ff">new</span> System.Collections.Generic.<span style="color: #2b91af">List</span>&lt;<span style="color: #0000ff">object</span>&gt;();
CKEditor1.CKEditorInstanceEventHandler.Add(<span style="color: #0000ff">new object</span>[] { <span style="color: #a52a2a">&quot;instanceReady&quot;</span>
	, <span style="color: #a52a2a">&quot;function (evt) { alert(&#39;Event Handler attached on CKEditorInstanceEventHandlerto editor: &#39; + evt.editor.name);}&quot; </span>});
</pre>
		<p>
			Attaching a function to an event in all editor instances (use e.g. in <code>Global.asax</code>)
			can be achieved in the following way:
		</p>
后面还有 28 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。