Click here to Skip to main content
15,885,914 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.2K   2.4K   123  
A tutorial on how to use the Provider Templates to create your own provider.
/*
 * 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: gl.js
 * 	Galician language file.
 * 
 * File Authors:
 * 		Fernando Riveiro Lopez
 */

var FCKLang =
{
// Language direction : "ltr" (left to right) or "rtl" (right to left).
Dir					: "ltr",

ToolbarCollapse		: "Ocultar Ferramentas",
ToolbarExpand		: "Mostrar Ferramentas",

// Toolbar Items and Context Menu
Save				: "Gardar",
NewPage				: "Nova Páxina",
Preview				: "Vista Previa",
Cut					: "Cortar",
Copy				: "Copiar",
Paste				: "Pegar",
PasteText			: "Pegar como texto plano",
PasteWord			: "Pegar dende Word",
Print				: "Imprimir",
SelectAll			: "Seleccionar todo",
RemoveFormat		: "Eliminar Formato",
InsertLinkLbl		: "Ligazón",
InsertLink			: "Inserir/Editar Ligazón",
RemoveLink			: "Eliminar Ligazón",
Anchor				: "Inserir/Editar Referencia",
InsertImageLbl		: "Imaxe",
InsertImage			: "Inserir/Editar Imaxe",
InsertFlashLbl		: "Flash",
InsertFlash			: "Inserir/Editar Flash",
InsertTableLbl		: "Tabla",
InsertTable			: "Inserir/Editar Tabla",
InsertLineLbl		: "Liña",
InsertLine			: "Inserir Liña Horizontal",
InsertSpecialCharLbl: "Carácter Special",
InsertSpecialChar	: "Inserir Carácter Especial",
InsertSmileyLbl		: "Smiley",
InsertSmiley		: "Inserir Smiley",
About				: "Acerca de FCKeditor",
Bold				: "Negrita",
Italic				: "Cursiva",
Underline			: "Sub-raiado",
StrikeThrough		: "Tachado",
Subscript			: "Subíndice",
Superscript			: "Superíndice",
LeftJustify			: "Aliñar á Esquerda",
CenterJustify		: "Centrado",
RightJustify		: "Aliñar á Dereita",
BlockJustify		: "Xustificado",
DecreaseIndent		: "Disminuir Sangría",
IncreaseIndent		: "Aumentar Sangría",
Undo				: "Desfacer",
Redo				: "Refacer",
NumberedListLbl		: "Lista Numerada",
NumberedList		: "Inserir/Eliminar Lista Numerada",
BulletedListLbl		: "Marcas",
BulletedList		: "Inserir/Eliminar Marcas",
ShowTableBorders	: "Mostrar Bordes das Taboas",
ShowDetails			: "Mostrar Marcas Parágrafo",
Style				: "Estilo",
FontFormat			: "Formato",
Font				: "Tipo",
FontSize			: "Tamaño",
TextColor			: "Cor do Texto",
BGColor				: "Cor do Fondo",
Source				: "Código Fonte",
Find				: "Procurar",
Replace				: "Substituir",
SpellCheck			: "Corrección Ortográfica",
UniversalKeyboard	: "Teclado Universal",
PageBreakLbl		: "Salto de Páxina",
PageBreak			: "Inserir Salto de Páxina",

Form			: "Formulario",
Checkbox		: "Cadro de Verificación",
RadioButton		: "Botón de Radio",
TextField		: "Campo de Texto",
Textarea		: "Área de Texto",
HiddenField		: "Campo Oculto",
Button			: "Botón",
SelectionField	: "Campo de Selección",
ImageButton		: "Botón de Imaxe",

FitWindow		: "Maximizar o tamaño do editor",

// Context Menu
EditLink			: "Editar Ligazón",
CellCM				: "Cela",
RowCM				: "Fila",
ColumnCM			: "Columna",
InsertRow			: "Inserir Fila",
DeleteRows			: "Borrar Filas",
InsertColumn		: "Inserir Columna",
DeleteColumns		: "Borrar Columnas",
InsertCell			: "Inserir Cela",
DeleteCells			: "Borrar Cela",
MergeCells			: "Unir Celas",
SplitCell			: "Partir Celas",
TableDelete			: "Borrar Taboa",
CellProperties		: "Propriedades da Cela",
TableProperties		: "Propriedades da Taboa",
ImageProperties		: "Propriedades Imaxe",
FlashProperties		: "Propriedades Flash",

AnchorProp			: "Propriedades da Referencia",
ButtonProp			: "Propriedades do Botón",
CheckboxProp		: "Propriedades do Cadro de Verificación",
HiddenFieldProp		: "Propriedades do Campo Oculto",
RadioButtonProp		: "Propriedades do Botón de Radio",
ImageButtonProp		: "Propriedades do Botón de Imaxe",
TextFieldProp		: "Propriedades do Campo de Texto",
SelectionFieldProp	: "Propriedades do Campo de Selección",
TextareaProp		: "Propriedades da Área de Texto",
FormProp			: "Propriedades do Formulario",

FontFormats			: "Normal;Formateado;Enderezo;Enacabezado 1;Encabezado 2;Encabezado 3;Encabezado 4;Encabezado 5;Encabezado 6;Paragraph (DIV)",

// Alerts and Messages
ProcessingXHTML		: "Procesando XHTML. Por facor, agarde...",
Done				: "Feiro",
PasteWordConfirm	: "Parece que o texto que quere pegar está copiado do Word.¿Quere limpar o formato antes de pegalo?",
NotCompatiblePaste	: "Este comando está disponible para Internet Explorer versión 5.5 ou superior. ¿Quere pegalo sen limpar o formato?",
UnknownToolbarItem	: "Ítem de ferramentas descoñecido \"%1\"",
UnknownCommand		: "Nome de comando descoñecido \"%1\"",
NotImplemented		: "Comando non implementado",
UnknownToolbarSet	: "O conxunto de ferramentas \"%1\" non existe",
NoActiveX			: "As opcións de seguridade do seu navegador poderían limitar algunha das características de editor. Debe activar a opción \"Executar controis ActiveX e plug-ins\". Pode notar que faltan características e experimentar erros",
BrowseServerBlocked : "Non se poido abrir o navegador de recursos. Asegúrese de que están desactivados os bloqueadores de xanelas emerxentes",
DialogBlocked		: "Non foi posible abrir a xanela de diálogo. Asegúrese de que están desactivados os bloqueadores de xanelas emerxentes",

// Dialogs
DlgBtnOK			: "OK",
DlgBtnCancel		: "Cancelar",
DlgBtnClose			: "Pechar",
DlgBtnBrowseServer	: "Navegar no Servidor",
DlgAdvancedTag		: "Advanzado",
DlgOpOther			: "<Outro>",
DlgInfoTab			: "Info",
DlgAlertUrl			: "Por favor, insira a URL",

// General Dialogs Labels
DlgGenNotSet		: "<non definido>",
DlgGenId			: "Id",
DlgGenLangDir		: "Orientación do Idioma",
DlgGenLangDirLtr	: "Esquerda a Dereita (LTR)",
DlgGenLangDirRtl	: "Dereita a Esquerda (RTL)",
DlgGenLangCode		: "Código do Idioma",
DlgGenAccessKey		: "Chave de Acceso",
DlgGenName			: "Nome",
DlgGenTabIndex		: "Índice de Tabulación",
DlgGenLongDescr		: "Descrición Completa da URL",
DlgGenClass			: "Clases da Folla de Estilos",
DlgGenTitle			: "Título",
DlgGenContType		: "Tipo de Contido",
DlgGenLinkCharset	: "Fonte de Caracteres Vinculado",
DlgGenStyle			: "Estilo",

// Image Dialog
DlgImgTitle			: "Propriedades da Imaxe",
DlgImgInfoTab		: "Información da Imaxe",
DlgImgBtnUpload		: "Enviar ó Servidor",
DlgImgURL			: "URL",
DlgImgUpload		: "Carregar",
DlgImgAlt			: "Texto Alternativo",
DlgImgWidth			: "Largura",
DlgImgHeight		: "Altura",
DlgImgLockRatio		: "Proporcional",
DlgBtnResetSize		: "Tamaño Orixinal",
DlgImgBorder		: "Límite",
DlgImgHSpace		: "Esp. Horiz.",
DlgImgVSpace		: "Esp. Vert.",
DlgImgAlign			: "Aliñamento",
DlgImgAlignLeft		: "Esquerda",
DlgImgAlignAbsBottom: "Abs Inferior",
DlgImgAlignAbsMiddle: "Abs Centro",
DlgImgAlignBaseline	: "Liña Base",
DlgImgAlignBottom	: "Pé",
DlgImgAlignMiddle	: "Centro",
DlgImgAlignRight	: "Dereita",
DlgImgAlignTextTop	: "Tope do Texto",
DlgImgAlignTop		: "Tope",
DlgImgPreview		: "Vista Previa",
DlgImgAlertUrl		: "Por favor, escriba a URL da imaxe",
DlgImgLinkTab		: "Ligazón",

// Flash Dialog
DlgFlashTitle		: "Propriedades Flash",
DlgFlashChkPlay		: "Auto Execución",
DlgFlashChkLoop		: "Bucle",
DlgFlashChkMenu		: "Activar Menú Flash",
DlgFlashScale		: "Escalar",
DlgFlashScaleAll	: "Amosar Todo",
DlgFlashScaleNoBorder	: "Sen Borde",
DlgFlashScaleFit	: "Encaixar axustando",

// Link Dialog
DlgLnkWindowTitle	: "Ligazón",
DlgLnkInfoTab		: "Información da Ligazón",
DlgLnkTargetTab		: "Referencia a esta páxina",

DlgLnkType			: "Tipo de Ligazón",
DlgLnkTypeURL		: "URL",
DlgLnkTypeAnchor	: "Referencia nesta páxina",
DlgLnkTypeEMail		: "E-Mail",
DlgLnkProto			: "Protocolo",
DlgLnkProtoOther	: "<outro>",
DlgLnkURL			: "URL",
DlgLnkAnchorSel		: "Seleccionar unha Referencia",
DlgLnkAnchorByName	: "Por Nome de Referencia",
DlgLnkAnchorById	: "Por Element Id",
DlgLnkNoAnchors		: "<Non hai referencias disponibles no documento>",
DlgLnkEMail			: "Enderezo de E-Mail",
DlgLnkEMailSubject	: "Asunto do Mensaxe",
DlgLnkEMailBody		: "Corpo do Mensaxe",
DlgLnkUpload		: "Carregar",
DlgLnkBtnUpload		: "Enviar ó servidor",

DlgLnkTarget		: "Destino",
DlgLnkTargetFrame	: "<frame>",
DlgLnkTargetPopup	: "<Xanela Emerxente>",
DlgLnkTargetBlank	: "Nova Xanela (_blank)",
DlgLnkTargetParent	: "Xanela Pai (_parent)",
DlgLnkTargetSelf	: "Mesma Xanela (_self)",
DlgLnkTargetTop		: "Xanela Primaria (_top)",
DlgLnkTargetFrameName	: "Nome do Marco Destino",
DlgLnkPopWinName	: "Nome da Xanela Emerxente",
DlgLnkPopWinFeat	: "Características da Xanela Emerxente",
DlgLnkPopResize		: "Axustable",
DlgLnkPopLocation	: "Barra de Localización",
DlgLnkPopMenu		: "Barra de Menú",
DlgLnkPopScroll		: "Barras de Desplazamento",
DlgLnkPopStatus		: "Barra de Estado",
DlgLnkPopToolbar	: "Barra de Ferramentas",
DlgLnkPopFullScrn	: "A Toda Pantalla (IE)",
DlgLnkPopDependent	: "Dependente (Netscape)",
DlgLnkPopWidth		: "Largura",
DlgLnkPopHeight		: "Altura",
DlgLnkPopLeft		: "Posición Esquerda",
DlgLnkPopTop		: "Posición dende Arriba",

DlnLnkMsgNoUrl		: "Por favor, escriba a ligazón URL",
DlnLnkMsgNoEMail	: "Por favor, escriba o enderezo de e-mail",
DlnLnkMsgNoAnchor	: "Por favor, seleccione un destino",

// Color Dialog
DlgColorTitle		: "Seleccionar Color",
DlgColorBtnClear	: "Nengunha",
DlgColorHighlight	: "Destacado",
DlgColorSelected	: "Seleccionado",

// Smiley Dialog
DlgSmileyTitle		: "Inserte un Smiley",

// Special Character Dialog
DlgSpecialCharTitle	: "Seleccione Caracter Especial",

// Table Dialog
DlgTableTitle		: "Propiedades da Taboa",
DlgTableRows		: "Filas",
DlgTableColumns		: "Columnas",
DlgTableBorder		: "Tamaño do Borde",
DlgTableAlign		: "Aliñamento",
DlgTableAlignNotSet	: "<Non Definido>",
DlgTableAlignLeft	: "Esquerda",
DlgTableAlignCenter	: "Centro",
DlgTableAlignRight	: "Ereita",
DlgTableWidth		: "Largura",
DlgTableWidthPx		: "pixels",
DlgTableWidthPc		: "percent",
DlgTableHeight		: "Altura",
DlgTableCellSpace	: "Marxe entre Celas",
DlgTableCellPad		: "Marxe interior",
DlgTableCaption		: "Título",
DlgTableSummary		: "Sumario",

// Table Cell Dialog
DlgCellTitle		: "Propriedades da Cela",
DlgCellWidth		: "Largura",
DlgCellWidthPx		: "pixels",
DlgCellWidthPc		: "percent",
DlgCellHeight		: "Altura",
DlgCellWordWrap		: "Axustar Liñas",
DlgCellWordWrapNotSet	: "<Non Definido>",
DlgCellWordWrapYes	: "Si",
DlgCellWordWrapNo	: "Non",
DlgCellHorAlign		: "Aliñamento Horizontal",
DlgCellHorAlignNotSet	: "<Non definido>",
DlgCellHorAlignLeft	: "Esquerda",
DlgCellHorAlignCenter	: "Centro",
DlgCellHorAlignRight: "Dereita",
DlgCellVerAlign		: "Aliñamento Vertical",
DlgCellVerAlignNotSet	: "<Non definido>",
DlgCellVerAlignTop	: "Arriba",
DlgCellVerAlignMiddle	: "Medio",
DlgCellVerAlignBottom	: "Abaixo",
DlgCellVerAlignBaseline	: "Liña de Base",
DlgCellRowSpan		: "Ocupar Filas",
DlgCellCollSpan		: "Ocupar Columnas",
DlgCellBackColor	: "Color de Fondo",
DlgCellBorderColor	: "Color de Borde",
DlgCellBtnSelect	: "Seleccionar...",

// Find Dialog
DlgFindTitle		: "Procurar",
DlgFindFindBtn		: "Procurar",
DlgFindNotFoundMsg	: "Non te atopou o texto indicado.",

// Replace Dialog
DlgReplaceTitle			: "Substituir",
DlgReplaceFindLbl		: "Texto a procurar:",
DlgReplaceReplaceLbl	: "Substituir con:",
DlgReplaceCaseChk		: "Coincidir Mai./min.",
DlgReplaceReplaceBtn	: "Substituir",
DlgReplaceReplAllBtn	: "Substitiur Todo",
DlgReplaceWordChk		: "Coincidir con toda a palabra",

// Paste Operations / Dialog
PasteErrorPaste	: "Os axustes de seguridade do seu navegador non permiten que o editor realice automáticamente as tarefas de pegado. Por favor, use o teclado para iso (Ctrl+V).",
PasteErrorCut	: "Os axustes de seguridade do seu navegador non permiten que o editor realice automáticamente as tarefas de corte. Por favor, use o teclado para iso (Ctrl+X).",
PasteErrorCopy	: "Os axustes de seguridade do seu navegador non permiten que o editor realice automáticamente as tarefas de copia. Por favor, use o teclado para iso (Ctrl+C).",

PasteAsText		: "Pegar como texto plano",
PasteFromWord	: "Pegar dende Word",

DlgPasteMsg2	: "Por favor, pegue dentro do seguinte cadro usando o teclado (<STRONG>Ctrl+V</STRONG>) e pulse <STRONG>OK</STRONG>.",
DlgPasteIgnoreFont		: "Ignorar as definicións de Tipografía",
DlgPasteRemoveStyles	: "Eliminar as definicións de Estilos",
DlgPasteCleanBox		: "Limpar o Cadro",

// Color Picker
ColorAutomatic	: "Automático",
ColorMoreColors	: "Máis Cores...",

// Document Properties
DocProps		: "Propriedades do Documento",

// Anchor Dialog
DlgAnchorTitle		: "Propriedades da Referencia",
DlgAnchorName		: "Nome da Referencia",
DlgAnchorErrorName	: "Por favor, escriba o nome da referencia",

// Speller Pages Dialog
DlgSpellNotInDic		: "Non está no diccionario",
DlgSpellChangeTo		: "Cambiar a",
DlgSpellBtnIgnore		: "Ignorar",
DlgSpellBtnIgnoreAll	: "Ignorar Todas",
DlgSpellBtnReplace		: "Substituir",
DlgSpellBtnReplaceAll	: "Substituir Todas",
DlgSpellBtnUndo			: "Desfacer",
DlgSpellNoSuggestions	: "- Sen candidatos -",
DlgSpellProgress		: "Corrección ortográfica en progreso...",
DlgSpellNoMispell		: "Corrección ortográfica rematada: Non se atoparon erros",
DlgSpellNoChanges		: "Corrección ortográfica rematada: Non se substituiu nengunha verba",
DlgSpellOneChange		: "Corrección ortográfica rematada: Unha verba substituida",
DlgSpellManyChanges		: "Corrección ortográfica rematada: %1 verbas substituidas",

IeSpellDownload			: "O corrector ortográfico non está instalado. ¿Quere descargalo agora?",

// Button Dialog
DlgButtonText	: "Texto (Valor)",
DlgButtonType	: "Tipo",

// Checkbox and Radio Button Dialogs
DlgCheckboxName		: "Nome",
DlgCheckboxValue	: "Valor",
DlgCheckboxSelected	: "Seleccionado",

// Form Dialog
DlgFormName		: "Nome",
DlgFormAction	: "Acción",
DlgFormMethod	: "Método",

// Select Field Dialog
DlgSelectName		: "Nome",
DlgSelectValue		: "Valor",
DlgSelectSize		: "Tamaño",
DlgSelectLines		: "liñas",
DlgSelectChkMulti	: "Permitir múltiples seleccións",
DlgSelectOpAvail	: "Opcións Disponibles",
DlgSelectOpText		: "Texto",
DlgSelectOpValue	: "Valor",
DlgSelectBtnAdd		: "Engadir",
DlgSelectBtnModify	: "Modificar",
DlgSelectBtnUp		: "Subir",
DlgSelectBtnDown	: "Baixar",
DlgSelectBtnSetValue : "Definir como valor por defecto",
DlgSelectBtnDelete	: "Borrar",

// Textarea Dialog
DlgTextareaName	: "Nome",
DlgTextareaCols	: "Columnas",
DlgTextareaRows	: "Filas",

// Text Field Dialog
DlgTextName			: "Nome",
DlgTextValue		: "Valor",
DlgTextCharWidth	: "Tamaño do Caracter",
DlgTextMaxChars		: "Máximo de Caracteres",
DlgTextType			: "Tipo",
DlgTextTypeText		: "Texto",
DlgTextTypePass		: "Chave",

// Hidden Field Dialog
DlgHiddenName	: "Nome",
DlgHiddenValue	: "Valor",

// Bulleted List Dialog
BulletedListProp	: "Propriedades das Marcas",
NumberedListProp	: "Propriedades da Lista de Numeración",
DlgLstType			: "Tipo",
DlgLstTypeCircle	: "Círculo",
DlgLstTypeDisc		: "Disco",
DlgLstTypeSquare	: "Cuadrado",
DlgLstTypeNumbers	: "Números (1, 2, 3)",
DlgLstTypeLCase		: "Letras Minúsculas (a, b, c)",
DlgLstTypeUCase		: "Letras Maiúsculas (A, B, C)",
DlgLstTypeSRoman	: "Números Romanos en minúscula (i, ii, iii)",
DlgLstTypeLRoman	: "Números Romanos en Maiúscula (I, II, III)",

// Document Properties Dialog
DlgDocGeneralTab	: "Xeral",
DlgDocBackTab		: "Fondo",
DlgDocColorsTab		: "Cores e Marxes",
DlgDocMetaTab		: "Meta Data",

DlgDocPageTitle		: "Título da Páxina",
DlgDocLangDir		: "Orientación do Idioma",
DlgDocLangDirLTR	: "Esquerda a Dereita (LTR)",
DlgDocLangDirRTL	: "Dereita a Esquerda (RTL)",
DlgDocLangCode		: "Código de Idioma",
DlgDocCharSet		: "Codificación do Xogo de Caracteres",
DlgDocCharSetOther	: "Outra Codificación do Xogo de Caracteres",

DlgDocDocType		: "Encabezado do Tipo de Documento",
DlgDocDocTypeOther	: "Outro Encabezado do Tipo de Documento",
DlgDocIncXHTML		: "Incluir Declaracións XHTML",
DlgDocBgColor		: "Cor de Fondo",
DlgDocBgImage		: "URL da Imaxe de Fondo",
DlgDocBgNoScroll	: "Fondo Fixo",
DlgDocCText			: "Texto",
DlgDocCLink			: "Ligazóns",
DlgDocCVisited		: "Ligazón Visitada",
DlgDocCActive		: "Ligazón Activa",
DlgDocMargins		: "Marxes da Páxina",
DlgDocMaTop			: "Arriba",
DlgDocMaLeft		: "Esquerda",
DlgDocMaRight		: "Dereita",
DlgDocMaBottom		: "Abaixo",
DlgDocMeIndex		: "Palabras Chave de Indexación do Documento (separadas por comas)",
DlgDocMeDescr		: "Descripción do Documento",
DlgDocMeAuthor		: "Autor",
DlgDocMeCopy		: "Copyright",
DlgDocPreview		: "Vista Previa",

// Templates Dialog
Templates			: "Plantillas",
DlgTemplatesTitle	: "Plantillas de Contido",
DlgTemplatesSelMsg	: "Por favor, seleccione a plantilla a abrir no editor<br>(o contido actual perderase):",
DlgTemplatesLoading	: "Cargando listado de plantillas. Por favor, espere...",
DlgTemplatesNoTpl	: "(Non hai plantillas definidas)",

// About Dialog
DlgAboutAboutTab	: "Acerca de",
DlgAboutBrowserInfoTab	: "Información do Navegador",
DlgAboutLicenseTab	: "Licencia",
DlgAboutVersion		: "versión",
DlgAboutLicense		: "Licencia concedida baixo os termos da GNU Lesser General Public License",
DlgAboutInfo		: "Para máis información visitar:"
}

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