I read the tutorial and download source code of Timestamp Plugin.
I created a .aspx page to use that plugin, this is my .aspx page:
<%@ Page Language="C#" AutoEventWireup="true" %> <%@ 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"> <script type="text/javascript"> //<![CDATA[ // Replace the <textarea id="editor1"> with a CKEditor // instance, using default configuration. CKEDITOR.replace('editor1', { extraPlugins: 'timestamp', toolbar: [ ['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink'], ['Timestamp'] ] }); //]]> </script> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <CKEditor:CKEditorControl ID="CKEditor1" runat="server" Height="200"></CKEditor:CKEditorControl> </div> </form> </body> </html>
Re: How to use CKEditor with a custom plugin
Re: How to use CKEditor with a custom plugin
Re: How to use CKEditor with a custom plugin
I tried with your support, but with no success.
<%@ Page Language="C#" AutoEventWireup="true" %>
<%@ 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">
<script language="C#" runat="server">
//protected void Page_Load(object sender, EventArgs e)
//{
// CKEditor1.config.toolbar = new object[]
// {
// new object[] { "Bold", "Italic", "-", "NumberedList", "BulletedList", "-", "Link", "UnLink" },
// };
// CKEditor1.config.removeDialogTabs = "link:target;link:advanced;";
//}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="ckeditor/ckeditor.js" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
// Replace the <textarea id="editor1"> with a CKEditor
// instance, using default configuration.
CKEDITOR.replace('CKEditor1',
{
extraPlugins: 'timestamp',
toolbar:
[
['Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink'],
['Timestamp']
]
});
//]]>
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<CKEditor:CKEditorControl ID="CKEditor1" runat="server" Height="200"></CKEditor:CKEditorControl>
</div>
</form>
</body>
</html>
the page still load a full ckeditor, with a javascript error: uncaught exception: [CKEDITOR.editor.replace] The element with id or name "CKEditor1" was not found.
Re: How to use CKEditor with a custom plugin
Try to replace this with
Re: How to use CKEditor with a custom plugin
Re: How to use CKEditor with a custom plugin