Click here to Skip to main content
15,880,503 members
Articles / Web Development / ASP.NET

HTMLEditor Provider - How to write a custom provider for ASP.NET 2.0

Rate me:
Please Sign up or sign in to vote.
4.75/5 (29 votes)
5 Sep 200614 min read 122.1K   2.4K   123  
A tutorial on how to use the Provider Templates to create your own provider.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!--
 * FCKeditor - The text editor for internet
 * Copyright (C) 2003-2006 Frederico Caldeira Knabben
 * 
 * Licensed under the terms of the GNU Lesser General Public License:
 * 		http://www.opensource.org/licenses/lgpl-license.php
 * 
 * For further information visit:
 * 		http://www.fckeditor.net/
 * 
 * "Support Open Source software. What about a donation today?"
 * 
 * File Name: fck_about.html
 * 	"About" dialog window.
 * 
 * File Authors:
 * 		Frederico Caldeira Knabben (fredck@fckeditor.net)
-->
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta name="robots" content="noindex, nofollow">
		<script src="common/fck_dialog_common.js" type="text/javascript"></script>
		<script language="javascript">

var oEditor = window.parent.InnerDialogLoaded() ;
var FCKLang	= oEditor.FCKLang ;

window.parent.AddTab( 'About', FCKLang.DlgAboutAboutTab ) ;
window.parent.AddTab( 'License', FCKLang.DlgAboutLicenseTab ) ;
window.parent.AddTab( 'BrowserInfo', FCKLang.DlgAboutBrowserInfoTab ) ;

// Function called when a dialog tag is selected.
function OnDialogTabChange( tabCode )
{
	ShowE('divAbout', ( tabCode == 'About' ) ) ;
	ShowE('divLicense', ( tabCode == 'License' ) ) ;
	ShowE('divInfo'	, ( tabCode == 'BrowserInfo' ) ) ;
}

function SendEMail()
{
	var eMail = 'mailto:' ;
	eMail += 'fredck' ;
	eMail += '@' ;
	eMail += 'fckeditor' ;
	eMail += '.' ;
	eMail += 'net' ;

	window.location = eMail ;
}

window.onload = function()
{
	// Translate the dialog box texts.
	oEditor.FCKLanguageManager.TranslatePage(document) ;

	window.parent.SetAutoSize( true ) ;
}

		</script>
	</head>
	<body scroll="no" style="OVERFLOW: hidden">
		<div id="divAbout">
			<table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">
				<tr>
					<td>
						<img alt="" src="fck_about/logo_fckeditor.gif" width="236" height="41" align="left">
						<table width="80" border="0" cellspacing="0" cellpadding="5" bgcolor="#ffffff" align="right">
							<tr>
								<td align="center" nowrap style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid">
									<span fckLang="DlgAboutVersion">version</span>
									<br>
									<b>2.3.1</b><br />
									Build 1062</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr height="100%">
					<td align="center">
						&nbsp;<br>
						<span style="FONT-SIZE: 14px" dir="ltr">Support <b>Open Source</b> software.<br>
							<b><a href="http://www.fckeditor.net/donate/?about" target="_blank" title="Click to go to the donation page">
									What about a donation today?</a></b> </span>
						<br><br><br>
						<span fckLang="DlgAboutInfo">For further information go to</span> <a href="http://www.fckeditor.net/?About" target="_blank">
							http://www.fckeditor.net/</a>.
						<br>
						Copyright &copy; 2003-2006 <a href="#" onclick="SendEMail();">Frederico Caldeira 
							Knabben</a>
					</td>
				</tr>
				<tr>
					<td align="center">
						<img alt="" src="fck_about/logo_fredck.gif" width="87" height="36">
					</td>
				</tr>
			</table>
		</div>
		<div id="divLicense" style="DISPLAY: none">
			<table height="100%" width="100%">
				<tr>
					<td>
						<span fckLang="DlgAboutLicense">Licensed under the terms of the GNU Lesser General 
							Public License</span>
						<br>
						<a href="http://www.opensource.org/licenses/lgpl-license.php" target="_blank">http://www.opensource.org/licenses/lgpl-license.php</a>
						<br>
					</td>
				</tr>
				<tr>
					<td height="100%">
						<iframe height="100%" width="100%" src="fck_about/lgpl.html"></iframe>
					</td>
				</tr>
			</table>
		</div>
		<div id="divInfo" style="DISPLAY: none" dir="ltr">
			<table align="center" width="80%" border="0">
				<tr>
					<td>
						<script language="javascript">
<!--
document.write( '<b>User Agent<\/b><br>' + window.navigator.userAgent + '<br><br>' ) ;
document.write( '<b>Browser<\/b><br>' + window.navigator.appName + ' ' + window.navigator.appVersion + '<br><br>' ) ;
document.write( '<b>Platform<\/b><br>' + window.navigator.platform + '<br><br>' ) ;

var sUserLang = '?' ;

if ( window.navigator.language )
	sUserLang = window.navigator.language.toLowerCase() ;
else if ( window.navigator.userLanguage )
	sUserLang = window.navigator.userLanguage.toLowerCase() ;

document.write( '<b>User Language<\/b><br>' + sUserLang ) ;
//-->
						</script>
					</td>
				</tr>
			</table>
		</div>
	</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Systems Engineer Virtual RadioLogic
United States United States
Todd Davis has been working in web and application development for several years, using Silverlight, ASP.NET, VB.NET, C#, C++ and Javascript, as well as a great deal of work with SQL server and IIS.

He currently works for Virtual Radiologic in Eden Prairie, MN, however he is better known for his varied work in the open source community, especially the DotNetNuke project for which he provided several world-renowned training videos and modules. A huge advocate of open source and open knowledge sharing, everything on his website (www.SeaburyDesign.com) is always offered for free.

Whenever he is not actively coding at his laptop (a rarity to be sure), he can be found woodworking, walking with his wife and kids, or motoring along the back roads of MN on his Harley Davidson Fatboy.

Comments and Discussions