From: <ha...@us...> - 2006-08-12 01:02:43
|
Revision: 1516 Author: haacked Date: 2006-08-11 18:02:28 -0700 (Fri, 11 Aug 2006) ViewCVS: http://svn.sourceforge.net/subtext/?rev=1516&view=rev Log Message: ----------- Since FCKEditor is now the default editor, moved the scripts and other files directly into the Subtext.Web project. Now the compilation is MUCH faster. Modified Paths: -------------- trunk/SubtextSolution/Subtext.Providers.BlogEntryEditor.FCKeditor/Subtext.Providers.BlogEntryEditor.FCKeditor.csproj Added Paths: ----------- trunk/SubtextSolution/Subtext.Web/Providers/BlogEntryEditor/FCKeditor/customConfiguration/ trunk/SubtextSolution/Subtext.Web/Providers/BlogEntryEditor/FCKeditor/editor/ trunk/SubtextSolution/Subtext.Web/Providers/BlogEntryEditor/FCKeditor/fckconfig.js trunk/SubtextSolution/Subtext.Web/Providers/BlogEntryEditor/FCKeditor/fckeditor.js trunk/SubtextSolution/Subtext.Web/Providers/BlogEntryEditor/FCKeditor/fckstyles.xml trunk/SubtextSolution/Subtext.Web/Providers/BlogEntryEditor/FCKeditor/fcktemplates.xml Removed Paths: ------------- trunk/SubtextSolution/Subtext.Providers.BlogEntryEditor.FCKeditor/customConfiguration/ trunk/SubtextSolution/Subtext.Providers.BlogEntryEditor.FCKeditor/editor/ trunk/SubtextSolution/Subtext.Providers.BlogEntryEditor.FCKeditor/fckconfig.js trunk/SubtextSolution/Subtext.Providers.BlogEntryEditor.FCKeditor/fckeditor.js trunk/SubtextSolution/Subtext.Providers.BlogEntryEditor.FCKeditor/fckstyles.xml trunk/SubtextSolution/Subtext.Providers.BlogEntryEditor.FCKeditor/fcktemplates.xml Modified: trunk/SubtextSolution/Subtext.Providers.BlogEntryEditor.FCKeditor/Subtext.Providers.BlogEntryEditor.FCKeditor.csproj =================================================================== --- trunk/SubtextSolution/Subtext.Providers.BlogEntryEditor.FCKeditor/Subtext.Providers.BlogEntryEditor.FCKeditor.csproj 2006-08-12 00:52:37 UTC (rev 1515) +++ trunk/SubtextSolution/Subtext.Providers.BlogEntryEditor.FCKeditor/Subtext.Providers.BlogEntryEditor.FCKeditor.csproj 2006-08-12 01:02:28 UTC (rev 1516) @@ -632,19 +632,7 @@ <PropertyGroup> <PreBuildEvent> </PreBuildEvent> - <PostBuildEvent>rmdir "$(ProjectDir)..\Subtext.Web\Providers\BlogEntryEditor\FCKeditor" /S /Q - -copy "$(TargetDir)FredCK.FCKeditorV2.dll" "$(ProjectDir)..\Subtext.Web\bin" -copy "$(TargetDir)Subtext.Providers.RichTextEditor.FCKeditor.*" "$(ProjectDir)..\Subtext.Web\bin" - -mkdir "$(ProjectDir)..\Subtext.Web\Providers\BlogEntryEditor\FCKeditor" -mkdir "$(ProjectDir)..\Subtext.Web\Providers\BlogEntryEditor\FCKeditor\editor" -mkdir "$(ProjectDir)..\Subtext.Web\Providers\BlogEntryEditor\FCKeditor\customConfiguration" - -copy "$(ProjectDir)*.js" "$(ProjectDir)..\Subtext.Web\Providers\BlogEntryEditor\FCKeditor\" -copy "$(ProjectDir)*.xml" "$(ProjectDir)..\Subtext.Web\Providers\BlogEntryEditor\FCKeditor\" -copy "$(ProjectDir)customConfiguration\*.*" "$(ProjectDir)..\Subtext.Web\Providers\BlogEntryEditor\FCKeditor\customConfiguration" - -xcopy "$(ProjectDir)editor\*.*" "$(ProjectDir)..\Subtext.Web\Providers\BlogEntryEditor\FCKeditor\editor" /S /Y</PostBuildEvent> + <PostBuildEvent> + </PostBuildEvent> </PropertyGroup> </Project> \ No newline at end of file Deleted: trunk/SubtextSolution/Subtext.Providers.BlogEntryEditor.FCKeditor/fckconfig.js =================================================================== --- trunk/SubtextSolution/Subtext.Providers.BlogEntryEditor.FCKeditor/fckconfig.js 2006-08-12 00:52:37 UTC (rev 1515) +++ trunk/SubtextSolution/Subtext.Providers.BlogEntryEditor.FCKeditor/fckconfig.js 2006-08-12 01:02:28 UTC (rev 1516) @@ -1,175 +0,0 @@ -/* - * FCKeditor - The text editor for internet - * Copyright (C) 2003-2005 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: fckconfig.js - * Editor configuration settings. - * See the documentation for more info. - * - * File Authors: - * Frederico Caldeira Knabben (fr...@fc...) - */ - -FCKConfig.CustomConfigurationsPath = FCKConfig.EditorPath + 'customConfiguration/subtextconfig.js' ; - -FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ; - -FCKConfig.DocType = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' ; - -FCKConfig.BaseHref = '' ; - -FCKConfig.FullPage = false ; - -FCKConfig.Debug = false ; -FCKConfig.AllowQueryStringDebug = false ; - -FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ; - -FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ; - -// FCKConfig.Plugins.Add( 'placeholder', 'de,en,fr,it,pl' ) ; - -FCKConfig.ProtectedSource.Add( /<script[\s\S]*?\/script>/gi ) ; // <SCRIPT> tags. -FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ; // ASP style server side code <%...%> -// FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ; // PHP style server side code <?...?> -FCKConfig.ProtectedSource.Add( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ; // ASP.Net style tags <asp:control> - -FCKConfig.AutoDetectLanguage = true ; -FCKConfig.DefaultLanguage = 'en' ; -FCKConfig.ContentLangDirection = 'ltr' ; - -FCKConfig.EnableXHTML = true ; // Unsupported: Do not change. -FCKConfig.EnableSourceXHTML = true ; // Unsupported: Do not change. - -FCKConfig.ProcessHTMLEntities = true ; -FCKConfig.IncludeLatinEntities = true ; -FCKConfig.IncludeGreekEntities = true ; - -FCKConfig.FillEmptyBlocks = true ; - -FCKConfig.FormatSource = true ; -FCKConfig.FormatOutput = true ; -FCKConfig.FormatIndentator = ' ' ; - -FCKConfig.ForceStrongEm = true ; -FCKConfig.GeckoUseSPAN = true ; -FCKConfig.StartupFocus = false ; -FCKConfig.ForcePasteAsPlainText = false ; -FCKConfig.AutoDetectPasteFromWord = true ; // IE only. -FCKConfig.ForceSimpleAmpersand = false ; -FCKConfig.TabSpaces = 0 ; -FCKConfig.ShowBorders = true ; -FCKConfig.UseBROnCarriageReturn = false ; // IE only. -FCKConfig.ToolbarStartExpanded = true ; -FCKConfig.ToolbarCanCollapse = true ; -FCKConfig.IEForceVScroll = false ; -FCKConfig.IgnoreEmptyParagraphValue = true ; -FCKConfig.PreserveSessionOnFileBrowser = false ; -FCKConfig.FloatingPanelsZIndex = 10000 ; - -FCKConfig.ToolbarSets["Default"] = [ - ['Source','DocProps','-','Save','NewPage','Preview','-','Templates'], - ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'], - ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], - ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'], - ['OrderedList','UnorderedList','-','Outdent','Indent'], - ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], - ['Link','Unlink','Anchor'], - ['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak','UniversalKey'], - ['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'], - '/', - ['Style','FontFormat','FontName','FontSize'], - ['TextColor','BGColor'], - ['About'] -] ; - -FCKConfig.ToolbarSets["Basic"] = [ - ['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About'] -] ; - -FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','TableCell','Table','Form'] ; - -FCKConfig.FontColors = '000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,808080,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF' ; - -FCKConfig.FontNames = 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ; -FCKConfig.FontSizes = '1/xx-small;2/x-small;3/small;4/medium;5/large;6/x-large;7/xx-large' ; -FCKConfig.FontFormats = 'p;div;pre;address;h1;h2;h3;h4;h5;h6' ; - -FCKConfig.StylesXmlPath = FCKConfig.EditorPath + 'fckstyles.xml' ; -FCKConfig.TemplatesXmlPath = FCKConfig.EditorPath + 'fcktemplates.xml' ; - -FCKConfig.SpellChecker = 'ieSpell' ; // 'ieSpell' | 'SpellerPages' -FCKConfig.IeSpellDownloadUrl = 'http://www.iespell.com/rel/ieSpellSetup211325.exe' ; - -FCKConfig.MaxUndoLevels = 15 ; - -FCKConfig.DisableImageHandles = false ; -FCKConfig.DisableTableHandles = false ; - -FCKConfig.LinkDlgHideTarget = false ; -FCKConfig.LinkDlgHideAdvanced = false ; - -FCKConfig.ImageDlgHideLink = false ; -FCKConfig.ImageDlgHideAdvanced = false ; - -FCKConfig.FlashDlgHideAdvanced = false ; - -// The following value defines which File Browser connector and Quick Upload -// "uploader" to use. It is valid for the default implementaion and it is here -// just to make this configuration file cleaner. -// It is not possible to change this value using an external file or even -// inline when creating the editor instance. In that cases you must set the -// values of LinkBrowserURL, ImageBrowserURL and so on. -// Custom implementations should just ignore it. -var _FileBrowserLanguage = 'aspx' ; // asp | aspx | cfm | lasso | perl | php | py -var _QuickUploadLanguage = 'aspx' ; // asp | aspx | cfm | lasso | php - -// Don't care about the following line. It just calculates the correct connector -// extension to use for the default File Browser (Perl uses "cgi"). -var _FileBrowserExtension = _FileBrowserLanguage == 'perl' ? 'cgi' : _FileBrowserLanguage ; - -FCKConfig.LinkBrowser = true ; -FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ; -FCKConfig.LinkBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70% -FCKConfig.LinkBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70% - -FCKConfig.ImageBrowser = true ; -FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ; -FCKConfig.ImageBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70% ; -FCKConfig.ImageBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70% ; - -FCKConfig.FlashBrowser = true ; -FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ; -FCKConfig.FlashBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; //70% ; -FCKConfig.FlashBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; //70% ; - -FCKConfig.LinkUpload = false ; -FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + FCKConfig.QuickUploadLanguage + '/upload.' + _QuickUploadLanguage ; -FCKConfig.LinkUploadAllowedExtensions = "" ; // empty for all -FCKConfig.LinkUploadDeniedExtensions = ".(php|php3|php5|phtml|asp|aspx|ascx|jsp|cfm|cfc|pl|bat|exe|dll|reg|cgi)$" ; // empty for no one - -FCKConfig.ImageUpload = false ; -FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + FCKConfig.QuickUploadLanguage + '/upload.' + _QuickUploadLanguage + '?Type=Image' ; -FCKConfig.ImageUploadAllowedExtensions = ".(jpg|gif|jpeg|png)$" ; // empty for all -FCKConfig.ImageUploadDeniedExtensions = "" ; // empty for no one - -FCKConfig.FlashUpload = false ; -FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + FCKConfig.QuickUploadLanguage + '/upload.' + _QuickUploadLanguage + '?Type=Flash' ; -FCKConfig.FlashUploadAllowedExtensions = ".(swf|fla)$" ; // empty for all -FCKConfig.FlashUploadDeniedExtensions = "" ; // empty for no one - -FCKConfig.SmileyPath = FCKConfig.BasePath + 'images/smiley/msn/' ; -FCKConfig.SmileyImages = ['regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','confused_smile.gif','tounge_smile.gif','embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angry_smile.gif','angel_smile.gif','shades_smile.gif','devil_smile.gif','cry_smile.gif','lightbulb.gif','thumbs_down.gif','thumbs_up.gif','heart.gif','broken_heart.gif','kiss.gif','envelope.gif'] ; -FCKConfig.SmileyColumns = 8 ; -FCKConfig.SmileyWindowWidth = 320 ; -FCKConfig.SmileyWindowHeight = 240 ; - -if( window.console ) window.console.log( 'Config is loaded!' ) ; // @Packager.Compactor.RemoveLine \ No newline at end of file Deleted: trunk/SubtextSolution/Subtext.Providers.BlogEntryEditor.FCKeditor/fckeditor.js =================================================================== --- trunk/SubtextSolution/Subtext.Providers.BlogEntryEditor.FCKeditor/fckeditor.js 2006-08-12 00:52:37 UTC (rev 1515) +++ trunk/SubtextSolution/Subtext.Providers.BlogEntryEditor.FCKeditor/fckeditor.js 2006-08-12 01:02:28 UTC (rev 1516) @@ -1,192 +0,0 @@ -/* - * FCKeditor - The text editor for internet - * Copyright (C) 2003-2005 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: fckeditor.js - * This is the integration file for JavaScript. - * - * It defines the FCKeditor class that can be used to create editor - * instances in a HTML page in the client side. For server side - * operations, use the specific integration system. - * - * File Authors: - * Frederico Caldeira Knabben (fr...@fc...) - */ - -// FCKeditor Class -var FCKeditor = function( instanceName, width, height, toolbarSet, value ) -{ - // Properties - this.InstanceName = instanceName ; - this.Width = width || '100%' ; - this.Height = height || '200' ; - this.ToolbarSet = toolbarSet || 'Default' ; - this.Value = value || '' ; - this.BasePath = '/fckeditor/' ; - this.CheckBrowser = true ; - this.DisplayErrors = true ; - this.EnableSafari = false ; // This is a temporary property, while Safari support is under development. - this.EnableOpera = false ; // This is a temporary property, while Opera support is under development. - - this.Config = new Object() ; - - // Events - this.OnError = null ; // function( source, errorNumber, errorDescription ) -} - -FCKeditor.prototype.Create = function() -{ - // Check for errors - if ( !this.InstanceName || this.InstanceName.length == 0 ) - { - this._ThrowError( 701, 'You must specify an instance name.' ) ; - return ; - } - - document.write( '<div>' ) ; - - if ( !this.CheckBrowser || this._IsCompatibleBrowser() ) - { - document.write( '<input type="hidden" id="' + this.InstanceName + '" name="' + this.InstanceName + '" value="' + this._HTMLEncode( this.Value ) + '" style="display:none" />' ) ; - document.write( this._GetConfigHtml() ) ; - document.write( this._GetIFrameHtml() ) ; - } - else - { - var sWidth = this.Width.toString().indexOf('%') > 0 ? this.Width : this.Width + 'px' ; - var sHeight = this.Height.toString().indexOf('%') > 0 ? this.Height : this.Height + 'px' ; - document.write('<textarea name="' + this.InstanceName + '" rows="4" cols="40" style="WIDTH: ' + sWidth + '; HEIGHT: ' + sHeight + '">' + this._HTMLEncode( this.Value ) + '<\/textarea>') ; - } - - document.write( '</div>' ) ; -} - -FCKeditor.prototype.ReplaceTextarea = function() -{ - if ( !this.CheckBrowser || this._IsCompatibleBrowser() ) - { - // We must check the elements firstly using the Id and then the name. - var oTextarea = document.getElementById( this.InstanceName ) ; - var colElementsByName = document.getElementsByName( this.InstanceName ) ; - var i = 0; - while ( oTextarea || i == 0 ) - { - if ( oTextarea && oTextarea.tagName == 'TEXTAREA' ) - break ; - oTextarea = colElementsByName[i++] ; - } - - if ( !oTextarea ) - { - alert( 'Error: The TEXTAREA with id or name set to "' + this.InstanceName + '" was not found' ) ; - return ; - } - - oTextarea.style.display = 'none' ; - this._InsertHtmlBefore( this._GetConfigHtml(), oTextarea ) ; - this._InsertHtmlBefore( this._GetIFrameHtml(), oTextarea ) ; - } -} - -FCKeditor.prototype._InsertHtmlBefore = function( html, element ) -{ - if ( element.insertAdjacentHTML ) // IE - element.insertAdjacentHTML( 'beforeBegin', html ) ; - else // Gecko - { - var oRange = document.createRange() ; - oRange.setStartBefore( element ) ; - var oFragment = oRange.createContextualFragment( html ); - element.parentNode.insertBefore( oFragment, element ) ; - } -} - -FCKeditor.prototype._GetConfigHtml = function() -{ - var sConfig = '' ; - for ( var o in this.Config ) - { - if ( sConfig.length > 0 ) sConfig += '&' ; - sConfig += escape(o) + '=' + escape( this.Config[o] ) ; - } - - return '<input type="hidden" id="' + this.InstanceName + '___Config" value="' + sConfig + '" style="display:none" />' ; -} - -FCKeditor.prototype._GetIFrameHtml = function() -{ - var sFile = (/fcksource=true/i).test( window.top.location.search ) ? 'fckeditor.original.html' : 'fckeditor.html' ; - - var sLink = this.BasePath + 'editor/' + sFile + '?InstanceName=' + this.InstanceName ; - if (this.ToolbarSet) sLink += '&Toolbar=' + this.ToolbarSet ; - - return '<iframe id="' + this.InstanceName + '___Frame" src="' + sLink + '" width="' + this.Width + '" height="' + this.Height + '" frameborder="no" scrolling="no"></iframe>' ; -} - -FCKeditor.prototype._IsCompatibleBrowser = function() -{ - var sAgent = navigator.userAgent.toLowerCase() ; - - // Internet Explorer - if ( sAgent.indexOf("msie") != -1 && sAgent.indexOf("mac") == -1 && sAgent.indexOf("opera") == -1 ) - { - var sBrowserVersion = navigator.appVersion.match(/MSIE (.\..)/)[1] ; - return ( sBrowserVersion >= 5.5 ) ; - } - - // Gecko - if ( navigator.product == "Gecko" && navigator.productSub >= 20030210 ) - return true ; - - // Opera - if ( this.EnableOpera ) - { - var aMatch = sAgent.match( /^opera\/(\d+\.\d+)/ ) ; - if ( aMatch && aMatch[1] >= 9.0 ) - return true ; - } - - // Safari - if ( this.EnableSafari && sAgent.indexOf( 'safari' ) != -1 ) - return ( sAgent.match( /safari\/(\d+)/ )[1] >= 312 ) ; // Build must be at least 312 (1.3) - - return false ; -} - -FCKeditor.prototype._ThrowError = function( errorNumber, errorDescription ) -{ - this.ErrorNumber = errorNumber ; - this.ErrorDescription = errorDescription ; - - if ( this.DisplayErrors ) - { - document.write( '<div style="COLOR: #ff0000">' ) ; - document.write( '[ FCKeditor Error ' + this.ErrorNumber + ': ' + this.ErrorDescription + ' ]' ) ; - document.write( '</div>' ) ; - } - - if ( typeof( this.OnError ) == 'function' ) - this.OnError( this, errorNumber, errorDescription ) ; -} - -FCKeditor.prototype._HTMLEncode = function( text ) -{ - if ( typeof( text ) != "string" ) - text = text.toString() ; - - text = text.replace(/&/g, "&") ; - text = text.replace(/"/g, """) ; - text = text.replace(/</g, "<") ; - text = text.replace(/>/g, ">") ; - text = text.replace(/'/g, "'") ; - - return text ; -} \ No newline at end of file Deleted: trunk/SubtextSolution/Subtext.Providers.BlogEntryEditor.FCKeditor/fckstyles.xml =================================================================== --- trunk/SubtextSolution/Subtext.Providers.BlogEntryEditor.FCKeditor/fckstyles.xml 2006-08-12 00:52:37 UTC (rev 1515) +++ trunk/SubtextSolution/Subtext.Providers.BlogEntryEditor.FCKeditor/fckstyles.xml 2006-08-12 01:02:28 UTC (rev 1516) @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="utf-8" ?> -<!-- - * FCKeditor - The text editor for internet - * Copyright (C) 2003-2005 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: fckstyles.xml - * This is the sample style definitions file. It makes the styles combo - * completely customizable. - * See FCKConfig.StylesXmlPath in the configuration file. - * - * File Authors: - * Frederico Caldeira Knabben (fr...@fc...) ---> -<Styles> - <Style name="Image on Left" element="img"> - <Attribute name="style" value="padding: 5px; margin-right: 5px" /> - <Attribute name="border" value="2" /> - <Attribute name="align" value="left" /> - </Style> - <Style name="Image on Right" element="img"> - <Attribute name="style" value="padding: 5px; margin-left: 5px" /> - <Attribute name="border" value="2" /> - <Attribute name="align" value="right" /> - </Style> - <Style name="Title H3" element="h3" /> - <Style name="Custom Ruler" element="hr"> - <Attribute name="size" value="1" /> - <Attribute name="color" value="#ff0000" /> - </Style> -</Styles> \ No newline at end of file Deleted: trunk/SubtextSolution/Subtext.Providers.BlogEntryEditor.FCKeditor/fcktemplates.xml =================================================================== --- trunk/SubtextSolution/Subtext.Providers.BlogEntryEditor.FCKeditor/fcktemplates.xml 2006-08-12 00:52:37 UTC (rev 1515) +++ trunk/SubtextSolution/Subtext.Providers.BlogEntryEditor.FCKeditor/fcktemplates.xml 2006-08-12 01:02:28 UTC (rev 1516) @@ -1,78 +0,0 @@ -<?xml version="1.0" encoding="utf-8" ?> -<Templates imagesBasePath="fck_template/images/"> - <Template title="Image and Title" image="template1.gif"> - <Description>One main image with a title and text that surround the image.</Description> - <Html> - <![CDATA[ - <img style="MARGIN-RIGHT: 10px" height="100" alt="" width="100" align="left"/> - <h3>Type the title here</h3> - Type the text here - ]]> - </Html> - </Template> - <Template title="Strange Template" image="template2.gif"> - <Description>A template that defines two colums, each one with a title, and some text.</Description> - <Html> - <![CDATA[ - <table cellspacing="0" cellpadding="0" width="100%" border="0"> - <tbody> - <tr> - <td width="50%"> - <h3>Title 1</h3> - </td> - <td> </td> - <td width="50%"> - <h3>Title 2</h3> - </td> - </tr> - <tr> - <td>Text 1</td> - <td> </td> - <td>Text 2</td> - </tr> - </tbody> - </table> - More text goes here. - ]]> - </Html> - </Template> - <Template title="Text and Table" image="template3.gif"> - <Description>A title with some text and a table.</Description> - <Html> - <![CDATA[ - <table align="left" width="80%" border="0" cellspacing="0" cellpadding="0"><tr><td> - <h3>Title goes here</h3> - <p> - <table style="FLOAT: right" cellspacing="0" cellpadding="0" width="150" border="1"> - <tbody> - <tr> - <td align="center" colspan="3"><strong>Table title</strong></td> - </tr> - <tr> - <td> </td> - <td> </td> - <td> </td> - </tr> - <tr> - <td> </td> - <td> </td> - <td> </td> - </tr> - <tr> - <td> </td> - <td> </td> - <td> </td> - </tr> - <tr> - <td> </td> - <td> </td> - <td> </td> - </tr> - </tbody> - </table> - Type the text here</p> - </td></tr></table> - ]]> - </Html> - </Template> -</Templates> Copied: trunk/SubtextSolution/Subtext.Web/Providers/BlogEntryEditor/FCKeditor/customConfiguration (from rev 1513, trunk/SubtextSolution/Subtext.Providers.BlogEntryEditor.FCKeditor/customConfiguration) Copied: trunk/SubtextSolution/Subtext.Web/Providers/BlogEntryEditor/FCKeditor/editor (from rev 1513, trunk/SubtextSolution/Subtext.Providers.BlogEntryEditor.FCKeditor/editor) Copied: trunk/SubtextSolution/Subtext.Web/Providers/BlogEntryEditor/FCKeditor/fckconfig.js (from rev 1513, trunk/SubtextSolution/Subtext.Providers.BlogEntryEditor.FCKeditor/fckconfig.js) =================================================================== --- trunk/SubtextSolution/Subtext.Web/Providers/BlogEntryEditor/FCKeditor/fckconfig.js (rev 0) +++ trunk/SubtextSolution/Subtext.Web/Providers/BlogEntryEditor/FCKeditor/fckconfig.js 2006-08-12 01:02:28 UTC (rev 1516) @@ -0,0 +1,175 @@ +/* + * FCKeditor - The text editor for internet + * Copyright (C) 2003-2005 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: fckconfig.js + * Editor configuration settings. + * See the documentation for more info. + * + * File Authors: + * Frederico Caldeira Knabben (fr...@fc...) + */ + +FCKConfig.CustomConfigurationsPath = FCKConfig.EditorPath + 'customConfiguration/subtextconfig.js' ; + +FCKConfig.EditorAreaCSS = FCKConfig.BasePath + 'css/fck_editorarea.css' ; + +FCKConfig.DocType = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' ; + +FCKConfig.BaseHref = '' ; + +FCKConfig.FullPage = false ; + +FCKConfig.Debug = false ; +FCKConfig.AllowQueryStringDebug = false ; + +FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ; + +FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/' ; + +// FCKConfig.Plugins.Add( 'placeholder', 'de,en,fr,it,pl' ) ; + +FCKConfig.ProtectedSource.Add( /<script[\s\S]*?\/script>/gi ) ; // <SCRIPT> tags. +FCKConfig.ProtectedSource.Add( /<%[\s\S]*?%>/g ) ; // ASP style server side code <%...%> +// FCKConfig.ProtectedSource.Add( /<\?[\s\S]*?\?>/g ) ; // PHP style server side code <?...?> +FCKConfig.ProtectedSource.Add( /(<asp:[^\>]+>[\s|\S]*?<\/asp:[^\>]+>)|(<asp:[^\>]+\/>)/gi ) ; // ASP.Net style tags <asp:control> + +FCKConfig.AutoDetectLanguage = true ; +FCKConfig.DefaultLanguage = 'en' ; +FCKConfig.ContentLangDirection = 'ltr' ; + +FCKConfig.EnableXHTML = true ; // Unsupported: Do not change. +FCKConfig.EnableSourceXHTML = true ; // Unsupported: Do not change. + +FCKConfig.ProcessHTMLEntities = true ; +FCKConfig.IncludeLatinEntities = true ; +FCKConfig.IncludeGreekEntities = true ; + +FCKConfig.FillEmptyBlocks = true ; + +FCKConfig.FormatSource = true ; +FCKConfig.FormatOutput = true ; +FCKConfig.FormatIndentator = ' ' ; + +FCKConfig.ForceStrongEm = true ; +FCKConfig.GeckoUseSPAN = true ; +FCKConfig.StartupFocus = false ; +FCKConfig.ForcePasteAsPlainText = false ; +FCKConfig.AutoDetectPasteFromWord = true ; // IE only. +FCKConfig.ForceSimpleAmpersand = false ; +FCKConfig.TabSpaces = 0 ; +FCKConfig.ShowBorders = true ; +FCKConfig.UseBROnCarriageReturn = false ; // IE only. +FCKConfig.ToolbarStartExpanded = true ; +FCKConfig.ToolbarCanCollapse = true ; +FCKConfig.IEForceVScroll = false ; +FCKConfig.IgnoreEmptyParagraphValue = true ; +FCKConfig.PreserveSessionOnFileBrowser = false ; +FCKConfig.FloatingPanelsZIndex = 10000 ; + +FCKConfig.ToolbarSets["Default"] = [ + ['Source','DocProps','-','Save','NewPage','Preview','-','Templates'], + ['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'], + ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'], + ['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'], + ['OrderedList','UnorderedList','-','Outdent','Indent'], + ['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'], + ['Link','Unlink','Anchor'], + ['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak','UniversalKey'], + ['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'], + '/', + ['Style','FontFormat','FontName','FontSize'], + ['TextColor','BGColor'], + ['About'] +] ; + +FCKConfig.ToolbarSets["Basic"] = [ + ['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About'] +] ; + +FCKConfig.ContextMenu = ['Generic','Link','Anchor','Image','Flash','Select','Textarea','Checkbox','Radio','TextField','HiddenField','ImageButton','Button','BulletedList','NumberedList','TableCell','Table','Form'] ; + +FCKConfig.FontColors = '000000,993300,333300,003300,003366,000080,333399,333333,800000,FF6600,808000,808080,008080,0000FF,666699,808080,FF0000,FF9900,99CC00,339966,33CCCC,3366FF,800080,999999,FF00FF,FFCC00,FFFF00,00FF00,00FFFF,00CCFF,993366,C0C0C0,FF99CC,FFCC99,FFFF99,CCFFCC,CCFFFF,99CCFF,CC99FF,FFFFFF' ; + +FCKConfig.FontNames = 'Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana' ; +FCKConfig.FontSizes = '1/xx-small;2/x-small;3/small;4/medium;5/large;6/x-large;7/xx-large' ; +FCKConfig.FontFormats = 'p;div;pre;address;h1;h2;h3;h4;h5;h6' ; + +FCKConfig.StylesXmlPath = FCKConfig.EditorPath + 'fckstyles.xml' ; +FCKConfig.TemplatesXmlPath = FCKConfig.EditorPath + 'fcktemplates.xml' ; + +FCKConfig.SpellChecker = 'ieSpell' ; // 'ieSpell' | 'SpellerPages' +FCKConfig.IeSpellDownloadUrl = 'http://www.iespell.com/rel/ieSpellSetup211325.exe' ; + +FCKConfig.MaxUndoLevels = 15 ; + +FCKConfig.DisableImageHandles = false ; +FCKConfig.DisableTableHandles = false ; + +FCKConfig.LinkDlgHideTarget = false ; +FCKConfig.LinkDlgHideAdvanced = false ; + +FCKConfig.ImageDlgHideLink = false ; +FCKConfig.ImageDlgHideAdvanced = false ; + +FCKConfig.FlashDlgHideAdvanced = false ; + +// The following value defines which File Browser connector and Quick Upload +// "uploader" to use. It is valid for the default implementaion and it is here +// just to make this configuration file cleaner. +// It is not possible to change this value using an external file or even +// inline when creating the editor instance. In that cases you must set the +// values of LinkBrowserURL, ImageBrowserURL and so on. +// Custom implementations should just ignore it. +var _FileBrowserLanguage = 'aspx' ; // asp | aspx | cfm | lasso | perl | php | py +var _QuickUploadLanguage = 'aspx' ; // asp | aspx | cfm | lasso | php + +// Don't care about the following line. It just calculates the correct connector +// extension to use for the default File Browser (Perl uses "cgi"). +var _FileBrowserExtension = _FileBrowserLanguage == 'perl' ? 'cgi' : _FileBrowserLanguage ; + +FCKConfig.LinkBrowser = true ; +FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ; +FCKConfig.LinkBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70% +FCKConfig.LinkBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70% + +FCKConfig.ImageBrowser = true ; +FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Image&Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ; +FCKConfig.ImageBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; // 70% ; +FCKConfig.ImageBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; // 70% ; + +FCKConfig.FlashBrowser = true ; +FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/' + _FileBrowserLanguage + '/connector.' + _FileBrowserExtension ; +FCKConfig.FlashBrowserWindowWidth = FCKConfig.ScreenWidth * 0.7 ; //70% ; +FCKConfig.FlashBrowserWindowHeight = FCKConfig.ScreenHeight * 0.7 ; //70% ; + +FCKConfig.LinkUpload = false ; +FCKConfig.LinkUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + FCKConfig.QuickUploadLanguage + '/upload.' + _QuickUploadLanguage ; +FCKConfig.LinkUploadAllowedExtensions = "" ; // empty for all +FCKConfig.LinkUploadDeniedExtensions = ".(php|php3|php5|phtml|asp|aspx|ascx|jsp|cfm|cfc|pl|bat|exe|dll|reg|cgi)$" ; // empty for no one + +FCKConfig.ImageUpload = false ; +FCKConfig.ImageUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + FCKConfig.QuickUploadLanguage + '/upload.' + _QuickUploadLanguage + '?Type=Image' ; +FCKConfig.ImageUploadAllowedExtensions = ".(jpg|gif|jpeg|png)$" ; // empty for all +FCKConfig.ImageUploadDeniedExtensions = "" ; // empty for no one + +FCKConfig.FlashUpload = false ; +FCKConfig.FlashUploadURL = FCKConfig.BasePath + 'filemanager/upload/' + FCKConfig.QuickUploadLanguage + '/upload.' + _QuickUploadLanguage + '?Type=Flash' ; +FCKConfig.FlashUploadAllowedExtensions = ".(swf|fla)$" ; // empty for all +FCKConfig.FlashUploadDeniedExtensions = "" ; // empty for no one + +FCKConfig.SmileyPath = FCKConfig.BasePath + 'images/smiley/msn/' ; +FCKConfig.SmileyImages = ['regular_smile.gif','sad_smile.gif','wink_smile.gif','teeth_smile.gif','confused_smile.gif','tounge_smile.gif','embaressed_smile.gif','omg_smile.gif','whatchutalkingabout_smile.gif','angry_smile.gif','angel_smile.gif','shades_smile.gif','devil_smile.gif','cry_smile.gif','lightbulb.gif','thumbs_down.gif','thumbs_up.gif','heart.gif','broken_heart.gif','kiss.gif','envelope.gif'] ; +FCKConfig.SmileyColumns = 8 ; +FCKConfig.SmileyWindowWidth = 320 ; +FCKConfig.SmileyWindowHeight = 240 ; + +if( window.console ) window.console.log( 'Config is loaded!' ) ; // @Packager.Compactor.RemoveLine \ No newline at end of file Copied: trunk/SubtextSolution/Subtext.Web/Providers/BlogEntryEditor/FCKeditor/fckeditor.js (from rev 1513, trunk/SubtextSolution/Subtext.Providers.BlogEntryEditor.FCKeditor/fckeditor.js) =================================================================== --- trunk/SubtextSolution/Subtext.Web/Providers/BlogEntryEditor/FCKeditor/fckeditor.js (rev 0) +++ trunk/SubtextSolution/Subtext.Web/Providers/BlogEntryEditor/FCKeditor/fckeditor.js 2006-08-12 01:02:28 UTC (rev 1516) @@ -0,0 +1,192 @@ +/* + * FCKeditor - The text editor for internet + * Copyright (C) 2003-2005 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: fckeditor.js + * This is the integration file for JavaScript. + * + * It defines the FCKeditor class that can be used to create editor + * instances in a HTML page in the client side. For server side + * operations, use the specific integration system. + * + * File Authors: + * Frederico Caldeira Knabben (fr...@fc...) + */ + +// FCKeditor Class +var FCKeditor = function( instanceName, width, height, toolbarSet, value ) +{ + // Properties + this.InstanceName = instanceName ; + this.Width = width || '100%' ; + this.Height = height || '200' ; + this.ToolbarSet = toolbarSet || 'Default' ; + this.Value = value || '' ; + this.BasePath = '/fckeditor/' ; + this.CheckBrowser = true ; + this.DisplayErrors = true ; + this.EnableSafari = false ; // This is a temporary property, while Safari support is under development. + this.EnableOpera = false ; // This is a temporary property, while Opera support is under development. + + this.Config = new Object() ; + + // Events + this.OnError = null ; // function( source, errorNumber, errorDescription ) +} + +FCKeditor.prototype.Create = function() +{ + // Check for errors + if ( !this.InstanceName || this.InstanceName.length == 0 ) + { + this._ThrowError( 701, 'You must specify an instance name.' ) ; + return ; + } + + document.write( '<div>' ) ; + + if ( !this.CheckBrowser || this._IsCompatibleBrowser() ) + { + document.write( '<input type="hidden" id="' + this.InstanceName + '" name="' + this.InstanceName + '" value="' + this._HTMLEncode( this.Value ) + '" style="display:none" />' ) ; + document.write( this._GetConfigHtml() ) ; + document.write( this._GetIFrameHtml() ) ; + } + else + { + var sWidth = this.Width.toString().indexOf('%') > 0 ? this.Width : this.Width + 'px' ; + var sHeight = this.Height.toString().indexOf('%') > 0 ? this.Height : this.Height + 'px' ; + document.write('<textarea name="' + this.InstanceName + '" rows="4" cols="40" style="WIDTH: ' + sWidth + '; HEIGHT: ' + sHeight + '">' + this._HTMLEncode( this.Value ) + '<\/textarea>') ; + } + + document.write( '</div>' ) ; +} + +FCKeditor.prototype.ReplaceTextarea = function() +{ + if ( !this.CheckBrowser || this._IsCompatibleBrowser() ) + { + // We must check the elements firstly using the Id and then the name. + var oTextarea = document.getElementById( this.InstanceName ) ; + var colElementsByName = document.getElementsByName( this.InstanceName ) ; + var i = 0; + while ( oTextarea || i == 0 ) + { + if ( oTextarea && oTextarea.tagName == 'TEXTAREA' ) + break ; + oTextarea = colElementsByName[i++] ; + } + + if ( !oTextarea ) + { + alert( 'Error: The TEXTAREA with id or name set to "' + this.InstanceName + '" was not found' ) ; + return ; + } + + oTextarea.style.display = 'none' ; + this._InsertHtmlBefore( this._GetConfigHtml(), oTextarea ) ; + this._InsertHtmlBefore( this._GetIFrameHtml(), oTextarea ) ; + } +} + +FCKeditor.prototype._InsertHtmlBefore = function( html, element ) +{ + if ( element.insertAdjacentHTML ) // IE + element.insertAdjacentHTML( 'beforeBegin', html ) ; + else // Gecko + { + var oRange = document.createRange() ; + oRange.setStartBefore( element ) ; + var oFragment = oRange.createContextualFragment( html ); + element.parentNode.insertBefore( oFragment, element ) ; + } +} + +FCKeditor.prototype._GetConfigHtml = function() +{ + var sConfig = '' ; + for ( var o in this.Config ) + { + if ( sConfig.length > 0 ) sConfig += '&' ; + sConfig += escape(o) + '=' + escape( this.Config[o] ) ; + } + + return '<input type="hidden" id="' + this.InstanceName + '___Config" value="' + sConfig + '" style="display:none" />' ; +} + +FCKeditor.prototype._GetIFrameHtml = function() +{ + var sFile = (/fcksource=true/i).test( window.top.location.search ) ? 'fckeditor.original.html' : 'fckeditor.html' ; + + var sLink = this.BasePath + 'editor/' + sFile + '?InstanceName=' + this.InstanceName ; + if (this.ToolbarSet) sLink += '&Toolbar=' + this.ToolbarSet ; + + return '<iframe id="' + this.InstanceName + '___Frame" src="' + sLink + '" width="' + this.Width + '" height="' + this.Height + '" frameborder="no" scrolling="no"></iframe>' ; +} + +FCKeditor.prototype._IsCompatibleBrowser = function() +{ + var sAgent = navigator.userAgent.toLowerCase() ; + + // Internet Explorer + if ( sAgent.indexOf("msie") != -1 && sAgent.indexOf("mac") == -1 && sAgent.indexOf("opera") == -1 ) + { + var sBrowserVersion = navigator.appVersion.match(/MSIE (.\..)/)[1] ; + return ( sBrowserVersion >= 5.5 ) ; + } + + // Gecko + if ( navigator.product == "Gecko" && navigator.productSub >= 20030210 ) + return true ; + + // Opera + if ( this.EnableOpera ) + { + var aMatch = sAgent.match( /^opera\/(\d+\.\d+)/ ) ; + if ( aMatch && aMatch[1] >= 9.0 ) + return true ; + } + + // Safari + if ( this.EnableSafari && sAgent.indexOf( 'safari' ) != -1 ) + return ( sAgent.match( /safari\/(\d+)/ )[1] >= 312 ) ; // Build must be at least 312 (1.3) + + return false ; +} + +FCKeditor.prototype._ThrowError = function( errorNumber, errorDescription ) +{ + this.ErrorNumber = errorNumber ; + this.ErrorDescription = errorDescription ; + + if ( this.DisplayErrors ) + { + document.write( '<div style="COLOR: #ff0000">' ) ; + document.write( '[ FCKeditor Error ' + this.ErrorNumber + ': ' + this.ErrorDescription + ' ]' ) ; + document.write( '</div>' ) ; + } + + if ( typeof( this.OnError ) == 'function' ) + this.OnError( this, errorNumber, errorDescription ) ; +} + +FCKeditor.prototype._HTMLEncode = function( text ) +{ + if ( typeof( text ) != "string" ) + text = text.toString() ; + + text = text.replace(/&/g, "&") ; + text = text.replace(/"/g, """) ; + text = text.replace(/</g, "<") ; + text = text.replace(/>/g, ">") ; + text = text.replace(/'/g, "'") ; + + return text ; +} \ No newline at end of file Copied: trunk/SubtextSolution/Subtext.Web/Providers/BlogEntryEditor/FCKeditor/fckstyles.xml (from rev 1513, trunk/SubtextSolution/Subtext.Providers.BlogEntryEditor.FCKeditor/fckstyles.xml) =================================================================== --- trunk/SubtextSolution/Subtext.Web/Providers/BlogEntryEditor/FCKeditor/fckstyles.xml (rev 0) +++ trunk/SubtextSolution/Subtext.Web/Providers/BlogEntryEditor/FCKeditor/fckstyles.xml 2006-08-12 01:02:28 UTC (rev 1516) @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="utf-8" ?> +<!-- + * FCKeditor - The text editor for internet + * Copyright (C) 2003-2005 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: fckstyles.xml + * This is the sample style definitions file. It makes the styles combo + * completely customizable. + * See FCKConfig.StylesXmlPath in the configuration file. + * + * File Authors: + * Frederico Caldeira Knabben (fr...@fc...) +--> +<Styles> + <Style name="Image on Left" element="img"> + <Attribute name="style" value="padding: 5px; margin-right: 5px" /> + <Attribute name="border" value="2" /> + <Attribute name="align" value="left" /> + </Style> + <Style name="Image on Right" element="img"> + <Attribute name="style" value="padding: 5px; margin-left: 5px" /> + <Attribute name="border" value="2" /> + <Attribute name="align" value="right" /> + </Style> + <Style name="Title H3" element="h3" /> + <Style name="Custom Ruler" element="hr"> + <Attribute name="size" value="1" /> + <Attribute name="color" value="#ff0000" /> + </Style> +</Styles> \ No newline at end of file Copied: trunk/SubtextSolution/Subtext.Web/Providers/BlogEntryEditor/FCKeditor/fcktemplates.xml (from rev 1513, trunk/SubtextSolution/Subtext.Providers.BlogEntryEditor.FCKeditor/fcktemplates.xml) =================================================================== --- trunk/SubtextSolution/Subtext.Web/Providers/BlogEntryEditor/FCKeditor/fcktemplates.xml (rev 0) +++ trunk/SubtextSolution/Subtext.Web/Providers/BlogEntryEditor/FCKeditor/fcktemplates.xml 2006-08-12 01:02:28 UTC (rev 1516) @@ -0,0 +1,78 @@ +<?xml version="1.0" encoding="utf-8" ?> +<Templates imagesBasePath="fck_template/images/"> + <Template title="Image and Title" image="template1.gif"> + <Description>One main image with a title and text that surround the image.</Description> + <Html> + <![CDATA[ + <img style="MARGIN-RIGHT: 10px" height="100" alt="" width="100" align="left"/> + <h3>Type the title here</h3> + Type the text here + ]]> + </Html> + </Template> + <Template title="Strange Template" image="template2.gif"> + <Description>A template that defines two colums, each one with a title, and some text.</Description> + <Html> + <![CDATA[ + <table cellspacing="0" cellpadding="0" width="100%" border="0"> + <tbody> + <tr> + <td width="50%"> + <h3>Title 1</h3> + </td> + <td> </td> + <td width="50%"> + <h3>Title 2</h3> + </td> + </tr> + <tr> + <td>Text 1</td> + <td> </td> + <td>Text 2</td> + </tr> + </tbody> + </table> + More text goes here. + ]]> + </Html> + </Template> + <Template title="Text and Table" image="template3.gif"> + <Description>A title with some text and a table.</Description> + <Html> + <![CDATA[ + <table align="left" width="80%" border="0" cellspacing="0" cellpadding="0"><tr><td> + <h3>Title goes here</h3> + <p> + <table style="FLOAT: right" cellspacing="0" cellpadding="0" width="150" border="1"> + <tbody> + <tr> + <td align="center" colspan="3"><strong>Table title</strong></td> + </tr> + <tr> + <td> </td> + <td> </td> + <td> </td> + </tr> + <tr> + <td> </td> + <td> </td> + <td> </td> + </tr> + <tr> + <td> </td> + <td> </td> + <td> </td> + </tr> + <tr> + <td> </td> + <td> </td> + <td> </td> + </tr> + </tbody> + </table> + Type the text here</p> + </td></tr></table> + ]]> + </Html> + </Template> +</Templates> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |