X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Ffckeditor%2Ffckeditor.js;h=8e0126bae79d7e15b994e0a0012ec1eb40b87d13;hp=63ec41f809fb7ad15af500eaa911714584d62c65;hb=18067f0bd41356e905666128c5e8105d1fca7c60;hpb=d0b2224eefe4df27ba4f5158a58fb86f9221301c diff --git a/httemplate/elements/fckeditor/fckeditor.js b/httemplate/elements/fckeditor/fckeditor.js index 63ec41f80..8e0126bae 100644 --- a/httemplate/elements/fckeditor/fckeditor.js +++ b/httemplate/elements/fckeditor/fckeditor.js @@ -1,6 +1,6 @@ /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net - * Copyright (C) 2003-2007 Frederico Caldeira Knabben + * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * @@ -34,11 +34,9 @@ var FCKeditor = function( instanceName, width, height, toolbarSet, value ) this.Height = height || '200' ; this.ToolbarSet = toolbarSet || 'Default' ; this.Value = value || '' ; - this.BasePath = '/fckeditor/' ; + this.BasePath = FCKeditor.BasePath ; 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() ; @@ -46,8 +44,23 @@ var FCKeditor = function( instanceName, width, height, toolbarSet, value ) this.OnError = null ; // function( source, errorNumber, errorDescription ) } -FCKeditor.prototype.Version = '2.4.3' ; -FCKeditor.prototype.VersionBuild = '15657' ; +/** + * This is the default BasePath used by all editor instances. + */ +FCKeditor.BasePath = '/fckeditor/' ; + +/** + * The minimum height used when replacing textareas. + */ +FCKeditor.MinHeight = 200 ; + +/** + * The minimum width used when replacing textareas. + */ +FCKeditor.MinWidth = 750 ; + +FCKeditor.prototype.Version = '2.6.6' ; +FCKeditor.prototype.VersionBuild = '25427' ; FCKeditor.prototype.Create = function() { @@ -63,7 +76,7 @@ FCKeditor.prototype.CreateHtml = function() return '' ; } - var sHtml = '
' ; + var sHtml = '' ; if ( !this.CheckBrowser || this._IsCompatibleBrowser() ) { @@ -75,16 +88,26 @@ FCKeditor.prototype.CreateHtml = function() { var sWidth = this.Width.toString().indexOf('%') > 0 ? this.Width : this.Width + 'px' ; var sHeight = this.Height.toString().indexOf('%') > 0 ? this.Height : this.Height + 'px' ; - sHtml += '