' +
+ '' +
'' ;
if ( this.Style != FCK_TOOLBARITEM_ONLYTEXT )
- sHtml += ' + '.gif) | ' ;
-
+ sHtml += ' | ' ;
+
if ( this.Style != FCK_TOOLBARITEM_ONLYICON )
- sHtml += '' + this.Label + ' | ' ;
+ sHtml += '' + this.Label + ' | ' ;
sHtml +=
- ' | ' +
+ ' | ' +
'
' +
'
' ;
Index: lams_central/web/fckeditor/editor/_source/classes/fcktoolbarspecialcombo.js
===================================================================
diff -u -r55b56043d9d88eeb96bb4f8680fe9d2b0491dc12 -r877c31055fbefba3e65d509cdee913a6e762a67d
--- lams_central/web/fckeditor/editor/_source/classes/fcktoolbarspecialcombo.js (.../fcktoolbarspecialcombo.js) (revision 55b56043d9d88eeb96bb4f8680fe9d2b0491dc12)
+++ lams_central/web/fckeditor/editor/_source/classes/fcktoolbarspecialcombo.js (.../fcktoolbarspecialcombo.js) (revision 877c31055fbefba3e65d509cdee913a6e762a67d)
@@ -37,10 +37,13 @@
FCKToolbarSpecialCombo.prototype.CreateInstance = function( parentToolbar )
{
- this._Combo = new FCKSpecialCombo( this.GetLabel() ) ;
+ this._Combo = new FCKSpecialCombo( this.GetLabel(), this.FieldWidth, this.PanelWidth, this.PanelMaxHeight ) ;
+
+ /*
this._Combo.FieldWidth = this.FieldWidth != null ? this.FieldWidth : 100 ;
this._Combo.PanelWidth = this.PanelWidth != null ? this.PanelWidth : 150 ;
this._Combo.PanelMaxHeight = this.PanelMaxHeight != null ? this.PanelMaxHeight : 150 ;
+ */
//this._Combo.Command.Name = this.Command.Name;
// this._Combo.Label = this.Label ;
@@ -81,7 +84,14 @@
if ( this.RefreshActiveItems )
this.RefreshActiveItems( this._Combo, sValue ) ;
else
+ {
+ if ( this._LastValue == sValue )
+ return ;
+
+ this._LastValue = sValue ;
+
FCKToolbarSpecialCombo_RefreshActiveItems( this._Combo, sValue ) ;
+ }
}
else
eState = FCK_TRISTATE_DISABLED ;
Index: lams_central/web/fckeditor/editor/_source/classes/fcktoolbarstylecombo.js
===================================================================
diff -u -r55b56043d9d88eeb96bb4f8680fe9d2b0491dc12 -r877c31055fbefba3e65d509cdee913a6e762a67d
--- lams_central/web/fckeditor/editor/_source/classes/fcktoolbarstylecombo.js (.../fcktoolbarstylecombo.js) (revision 55b56043d9d88eeb96bb4f8680fe9d2b0491dc12)
+++ lams_central/web/fckeditor/editor/_source/classes/fcktoolbarstylecombo.js (.../fcktoolbarstylecombo.js) (revision 877c31055fbefba3e65d509cdee913a6e762a67d)
@@ -37,6 +37,8 @@
{
// Add the Editor Area CSS to the Styles panel so the style classes are previewed correctly.
FCKTools.AppendStyleSheet( targetSpecialCombo._Panel.Document, FCKConfig.EditorAreaCSS ) ;
+
+ targetSpecialCombo._Panel.Document.body.className += ' ForceBaseFont' ;
// For some reason Gecko is blocking inside the "RefreshVisibleItems" function.
if ( ! FCKBrowserInfo.IsGecko )
Index: lams_central/web/fckeditor/editor/_source/commandclasses/fck_othercommands.js
===================================================================
diff -u -r55b56043d9d88eeb96bb4f8680fe9d2b0491dc12 -r877c31055fbefba3e65d509cdee913a6e762a67d
--- lams_central/web/fckeditor/editor/_source/commandclasses/fck_othercommands.js (.../fck_othercommands.js) (revision 55b56043d9d88eeb96bb4f8680fe9d2b0491dc12)
+++ lams_central/web/fckeditor/editor/_source/commandclasses/fck_othercommands.js (.../fck_othercommands.js) (revision 877c31055fbefba3e65d509cdee913a6e762a67d)
@@ -115,6 +115,8 @@
{
if ( formatName == null || formatName == '' )
FCK.ExecuteNamedCommand( 'FormatBlock', '' ) ;
+ else if ( formatName == 'div' && FCKBrowserInfo.IsGecko )
+ FCK.ExecuteNamedCommand( 'FormatBlock', 'div' ) ;
else
FCK.ExecuteNamedCommand( 'FormatBlock', '<' + formatName + '>' ) ;
}
@@ -262,10 +264,16 @@
FCKPageBreakCommand.prototype.Execute = function()
{
- var oCenter = FCK.EditorDocument.createElement( 'CENTER' ) ;
- oCenter.style.pageBreakAfter = 'always' ;
+// var e = FCK.EditorDocument.createElement( 'CENTER' ) ;
+// e.style.pageBreakAfter = 'always' ;
+
+ // Tidy was removing the empty CENTER tags, so the following solution has
+ // been found. It also validates correctly as XHTML 1.0 Strict.
+ var e = FCK.EditorDocument.createElement( 'DIV' ) ;
+ e.style.pageBreakAfter = 'always' ;
+ e.innerHTML = ' ' ;
- var oFakeImage = FCKDocumentProcessors_CreateFakeImage( 'FCK__PageBreak', oCenter ) ;
+ var oFakeImage = FCKDocumentProcessors_CreateFakeImage( 'FCK__PageBreak', e ) ;
oFakeImage = FCK.InsertElement( oFakeImage ) ;
}
Index: lams_central/web/fckeditor/editor/_source/commandclasses/fcktablecommand.js
===================================================================
diff -u -r55b56043d9d88eeb96bb4f8680fe9d2b0491dc12 -r877c31055fbefba3e65d509cdee913a6e762a67d
--- lams_central/web/fckeditor/editor/_source/commandclasses/fcktablecommand.js (.../fcktablecommand.js) (revision 55b56043d9d88eeb96bb4f8680fe9d2b0491dc12)
+++ lams_central/web/fckeditor/editor/_source/commandclasses/fcktablecommand.js (.../fcktablecommand.js) (revision 877c31055fbefba3e65d509cdee913a6e762a67d)
@@ -53,6 +53,9 @@
case 'TableSplitCell' :
FCKTableHandler.SplitCell() ;
break ;
+ case 'TableDelete' :
+ FCKTableHandler.DeleteTable() ;
+ break ;
default :
alert( FCKLang.UnknownCommand.replace( /%1/g, this.Name ) ) ;
}
Index: lams_central/web/fckeditor/editor/_source/commandclasses/fcktextcolorcommand.js
===================================================================
diff -u -r55b56043d9d88eeb96bb4f8680fe9d2b0491dc12 -r877c31055fbefba3e65d509cdee913a6e762a67d
--- lams_central/web/fckeditor/editor/_source/commandclasses/fcktextcolorcommand.js (.../fcktextcolorcommand.js) (revision 55b56043d9d88eeb96bb4f8680fe9d2b0491dc12)
+++ lams_central/web/fckeditor/editor/_source/commandclasses/fcktextcolorcommand.js (.../fcktextcolorcommand.js) (revision 877c31055fbefba3e65d509cdee913a6e762a67d)
@@ -31,11 +31,14 @@
*/
this._Panel = new FCKPanel() ;
- this._Panel.StyleSheet = FCKConfig.SkinPath + 'fck_contextmenu.css' ;
- this._Panel.Create() ;
+ this._Panel.AppendStyleSheet( FCKConfig.SkinPath + 'fck_contextmenu.css' ) ;
+// this._Panel.StyleSheet = FCKConfig.SkinPath + 'fck_contextmenu.css' ;
+// this._Panel.Create() ;
this._CreatePanelBody( this._Panel.Document, this._Panel.PanelDiv ) ;
+ FCKTools.DisableSelection( this._Panel.Document.body ) ;
+
// END ###
}
@@ -123,6 +126,7 @@
// Create the Table that will hold all colors.
var oTable = targetDiv.appendChild( targetDocument.createElement( "TABLE" ) ) ;
+ oTable.className = 'ForceBaseFont' ; // Firefox 1.5 Bug.
oTable.style.tableLayout = 'fixed' ;
oTable.cellPadding = 0 ;
oTable.cellSpacing = 0 ;
@@ -138,7 +142,7 @@
'
\
\
| \
- ' + FCKLang.ColorAutomatic + ' | \
+ ' + FCKLang.ColorAutomatic + ' | \
\
' ;
Index: lams_central/web/fckeditor/editor/_source/globals/fckeditorapi.js
===================================================================
diff -u -r55b56043d9d88eeb96bb4f8680fe9d2b0491dc12 -r877c31055fbefba3e65d509cdee913a6e762a67d
--- lams_central/web/fckeditor/editor/_source/globals/fckeditorapi.js (.../fckeditorapi.js) (revision 55b56043d9d88eeb96bb4f8680fe9d2b0491dc12)
+++ lams_central/web/fckeditor/editor/_source/globals/fckeditorapi.js (.../fckeditorapi.js) (revision 877c31055fbefba3e65d509cdee913a6e762a67d)
@@ -32,7 +32,7 @@
FCKeditorAPI.__Instances = new Object() ;
// Set the current version.
- FCKeditorAPI.Version = '2.1.1' ;
+ FCKeditorAPI.Version = '2.2' ;
// Function used to get a instance of an existing editor present in the
// page.
Index: lams_central/web/fckeditor/editor/_source/internals/fck.js
===================================================================
diff -u -r55b56043d9d88eeb96bb4f8680fe9d2b0491dc12 -r877c31055fbefba3e65d509cdee913a6e762a67d
--- lams_central/web/fckeditor/editor/_source/internals/fck.js (.../fck.js) (revision 55b56043d9d88eeb96bb4f8680fe9d2b0491dc12)
+++ lams_central/web/fckeditor/editor/_source/internals/fck.js (.../fck.js) (revision 877c31055fbefba3e65d509cdee913a6e762a67d)
@@ -25,20 +25,31 @@
FCK.Status = FCK_STATUS_NOTLOADED ;
FCK.EditMode = FCK_EDITMODE_WYSIWYG ;
-// There is a bug on IE... getElementById returns any META tag that has the
-// name set to the ID you are looking for. So the best way in to get the array
-// by names and look for the correct one.
-// As ASP.Net generates a ID that is different from the Name, we must also
-// look for the field based on the ID.
-
-var aElements = window.parent.document.getElementsByName( FCK.Name ) ;
-aElements[ aElements.length ] = window.parent.document.getElementById( FCK.Name ) ;
-var i = 0;
-while ( ( FCK.LinkedField = aElements[i++] ) )
+FCK.LoadLinkedFile = function()
{
- if ( FCK.LinkedField.tagName == 'INPUT' || FCK.LinkedField.tagName == 'TEXTAREA' )
- break ;
+ // There is a bug on IE... getElementById returns any META tag that has the
+ // name set to the ID you are looking for. So the best way in to get the array
+ // by names and look for the correct one.
+ // As ASP.Net generates a ID that is different from the Name, we must also
+ // look for the field based on the ID (the first one is the ID).
+
+ var oDocument = window.parent.document ;
+
+ var eLinkedField = oDocument.getElementById( FCK.Name ) ;
+ var colElementsByName = oDocument.getElementsByName( FCK.Name ) ;
+
+ var i = 0;
+ while ( eLinkedField || i == 0 )
+ {
+ if ( eLinkedField && ( eLinkedField.tagName == 'INPUT' || eLinkedField.tagName == 'TEXTAREA' ) )
+ {
+ FCK.LinkedField = eLinkedField ;
+ break ;
+ }
+ eLinkedField = colElementsByName[i++] ;
+ }
}
+FCK.LoadLinkedFile() ;
var FCKTempBin = new Object() ;
FCKTempBin.Elements = new Array() ;
Index: lams_central/web/fckeditor/editor/_source/internals/fck_1.js
===================================================================
diff -u -r55b56043d9d88eeb96bb4f8680fe9d2b0491dc12 -r877c31055fbefba3e65d509cdee913a6e762a67d
--- lams_central/web/fckeditor/editor/_source/internals/fck_1.js (.../fck_1.js) (revision 55b56043d9d88eeb96bb4f8680fe9d2b0491dc12)
+++ lams_central/web/fckeditor/editor/_source/internals/fck_1.js (.../fck_1.js) (revision 877c31055fbefba3e65d509cdee913a6e762a67d)
@@ -18,6 +18,8 @@
* Frederico Caldeira Knabben (fredck@fckeditor.net)
*/
+var FCK_StartupValue ;
+
FCK.Events = new FCKEvents( FCK ) ;
FCK.Toolbar = null ;
@@ -38,6 +40,9 @@
// Set the editor's startup contents
this.SetHTML( FCKTools.GetLinkedFieldValue() ) ;
+
+ // Save the startup value for the "IsDirty()" check.
+ this.ResetIsDirty() ;
// Attach the editor to the form onsubmit event
FCKTools.AttachToLinkedFieldFormSubmit( this.UpdateLinkedField ) ;
@@ -50,16 +55,24 @@
function Window_OnFocus()
{
FCK.Focus() ;
+ FCK.Events.FireEvent( "OnFocus" ) ;
}
+function Window_OnBlur()
+{
+ if ( !FCKDialog.IsOpened )
+ return FCK.Events.FireEvent( "OnBlur" ) ;
+}
+
FCK.SetStatus = function( newStatus )
{
this.Status = newStatus ;
if ( newStatus == FCK_STATUS_ACTIVE )
{
// Force the focus in the window to go to the editor.
- window.onfocus = window.document.body.onfocus = Window_OnFocus ;
+ window.frameElement.onfocus = window.document.body.onfocus = Window_OnFocus ;
+ window.frameElement.onblur = Window_OnBlur ;
// Force the focus in the editor.
if ( FCKConfig.StartupFocus )
@@ -108,7 +121,7 @@
FCKScriptLoader.AddScript( '_source/classes/fckcontextmenuseparator.js' ) ;
FCKScriptLoader.AddScript( '_source/classes/fckcontextmenugroup.js' ) ;
FCKScriptLoader.AddScript( '_source/internals/fckcontextmenu.js' ) ;
- FCKScriptLoader.AddScript( '_source/internals/fckcontextmenu_' + sBrowserSuffix + '.js' ) ;
+// FCKScriptLoader.AddScript( '_source/internals/fckcontextmenu_' + sBrowserSuffix + '.js' ) ;
FCKScriptLoader.AddScript( '_source/classes/fckplugin.js' ) ;
FCKScriptLoader.AddScript( '_source/internals/fckplugins.js' ) ;
FCKScriptLoader.AddScript( '_source/internals/fck_last.js' ) ;
@@ -127,8 +140,11 @@
this.Events.FireEvent( 'OnStatusChange', newStatus ) ;
}
+// Deprecated : returns the same value as GetXHTML.
FCK.GetHTML = function( format )
{
+ FCK.GetXHTML( format ) ;
+/*
var sHTML ;
if ( FCK.EditMode == FCK_EDITMODE_WYSIWYG )
@@ -149,6 +165,7 @@
return FCKCodeFormatter.Format( sHTML ) ;
else
return sHTML ;
+*/
}
FCK.GetXHTML = function( format )
@@ -158,10 +175,6 @@
if ( bSource )
this.SwitchEditMode() ;
- // TODO: Wait stable version and remove the following commented lines.
-// if ( FCKBrowserInfo.IsIE )
-// FCK.CheckRelativeLinks() ;
-
var sXHTML ;
if ( FCKConfig.FullPage )
@@ -191,10 +204,11 @@
FCK.UpdateLinkedField = function()
{
- if ( FCKConfig.EnableXHTML )
+ // EnableXHTML has been deprecated
+// if ( FCKConfig.EnableXHTML )
FCK.LinkedField.value = FCK.GetXHTML( FCKConfig.FormatOutput ) ;
- else
- FCK.LinkedField.value = FCK.GetHTML( FCKConfig.FormatOutput ) ;
+// else
+// FCK.LinkedField.value = FCK.GetHTML( FCKConfig.FormatOutput ) ;
FCK.Events.FireEvent( 'OnAfterLinkedFieldUpdate' ) ;
}
@@ -232,6 +246,32 @@
this.Events.FireEvent( 'OnAfterSetHTML' ) ;
}
+// Saves URLs on links and images on special attributes, so they don't change when
+// moving around.
+FCK.ProtectUrls = function( html )
+{
+ // href
+ html = html.replace( FCKRegexLib.ProtectUrlsAApo , '$1$2$3$2 _fcksavedurl=$2$3$2' ) ;
+ html = html.replace( FCKRegexLib.ProtectUrlsANoApo , '$1$2 _fcksavedurl="$2"' ) ;
+
+ //
src
+ html = html.replace( FCKRegexLib.ProtectUrlsImgApo , '$1$2$3$2 _fcksavedurl=$2$3$2' ) ;
+ html = html.replace( FCKRegexLib.ProtectUrlsImgNoApo, '$1$2 _fcksavedurl="$2"' ) ;
+
+ return html ;
+}
+
+FCK.IsDirty = function()
+{
+ return ( FCK_StartupValue != FCK.EditorDocument.body.innerHTML ) ;
+}
+
+FCK.ResetIsDirty = function()
+{
+ if ( FCK.EditorDocument.body )
+ FCK_StartupValue = FCK.EditorDocument.body.innerHTML ;
+}
+
// Advanced document processors.
var FCKDocumentProcessors = new Array() ;
@@ -274,6 +314,21 @@
var FCKPageBreaksProcessor = new Object() ;
FCKPageBreaksProcessor.ProcessDocument = function( document )
{
+ var aDIVs = document.getElementsByTagName( 'DIV' ) ;
+
+ var eDIV ;
+ var i = aDIVs.length - 1 ;
+ while ( i >= 0 && ( eDIV = aDIVs[i--] ) )
+ {
+ if ( eDIV.style.pageBreakAfter == 'always' && eDIV.childNodes.length == 1 && eDIV.childNodes[0].style && eDIV.childNodes[0].style.display == 'none' )
+ {
+ var oFakeImage = FCKDocumentProcessors_CreateFakeImage( 'FCK__PageBreak', eDIV.cloneNode(true) ) ;
+
+ eDIV.parentNode.insertBefore( oFakeImage, eDIV ) ;
+ eDIV.parentNode.removeChild( eDIV ) ;
+ }
+ }
+/*
var aCenters = document.getElementsByTagName( 'CENTER' ) ;
var oCenter ;
@@ -288,6 +343,7 @@
oCenter.parentNode.removeChild( oCenter ) ;
}
}
+*/
}
FCKDocumentProcessors.addItem( FCKPageBreaksProcessor ) ;
@@ -309,7 +365,19 @@
{
if ( oEmbed.src.endsWith( '.swf', true ) )
{
- var oImg = FCKDocumentProcessors_CreateFakeImage( 'FCK__Flash', oEmbed.cloneNode(true) ) ;
+ var oCloned = oEmbed.cloneNode( true ) ;
+
+ // On IE, some properties are not getting clonned properly, so we
+ // must fix it. Thanks to Alfonso Martinez.
+ if ( FCKBrowserInfo.IsIE )
+ {
+ oCloned.setAttribute( 'scale', oEmbed.getAttribute( 'scale' ) );
+ oCloned.setAttribute( 'play', oEmbed.getAttribute( 'play' ) );
+ oCloned.setAttribute( 'loop', oEmbed.getAttribute( 'loop' ) );
+ oCloned.setAttribute( 'menu', oEmbed.getAttribute( 'menu' ) );
+ }
+
+ var oImg = FCKDocumentProcessors_CreateFakeImage( 'FCK__Flash', oCloned ) ;
oImg.setAttribute( '_fckflash', 'true', 0 ) ;
FCKFlashProcessor.RefreshView( oImg, oEmbed ) ;
Index: lams_central/web/fckeditor/editor/_source/internals/fck_1_gecko.js
===================================================================
diff -u -r55b56043d9d88eeb96bb4f8680fe9d2b0491dc12 -r877c31055fbefba3e65d509cdee913a6e762a67d
--- lams_central/web/fckeditor/editor/_source/internals/fck_1_gecko.js (.../fck_1_gecko.js) (revision 55b56043d9d88eeb96bb4f8680fe9d2b0491dc12)
+++ lams_central/web/fckeditor/editor/_source/internals/fck_1_gecko.js (.../fck_1_gecko.js) (revision 877c31055fbefba3e65d509cdee913a6e762a67d)
@@ -23,6 +23,18 @@
FCK.InitializeBehaviors = function()
{
+ /*
+ window.document.onblur = function(e)
+ {
+ return FCK.Events.FireEvent( "OnBlur" ) ;
+ }
+
+ window.document.onfocus = function()
+ {
+ return FCK.Events.FireEvent( "OnFocus" ) ;
+ }
+ */
+
// Enable table borders visibility.
if ( FCKConfig.ShowBorders )
{
@@ -41,7 +53,6 @@
// Handle pasting operations.
var oOnKeyDown = function( e )
{
- // FCKDebug.Output( 'Which Key: ' + e.which ) ;
// START iCM Modifications
/*
@@ -53,18 +64,18 @@
}
// Amend backspace handling so correctly removes empty block elements i.e. those block elements containing nothing or
// just the bogus BR node
- if ( e.which == 8 && !e.shiftKey && !e.ctrlKey && !e.altKey && !FCKConfig.UserBROnCarriageReturn && !FCK.Events.FireEvent( "OnBackSpace" ) )
+ if ( e.which == 8 && !e.shiftKey && !e.ctrlKey && !e.altKey && !FCKConfig.UseBROnCarriageReturn && !FCK.Events.FireEvent( "OnBackSpace" ) )
{
e.preventDefault() ;
e.stopPropagation() ;
}
*/
// END iCM Modifications
+ var bPrevent ;
+
if ( e.ctrlKey && !e.shiftKey && !e.altKey )
{
- var bPrevent = false ;
-
switch ( e.which )
{
case 66 : // B
@@ -84,13 +95,15 @@
bPrevent = ( FCK.Status != FCK_STATUS_COMPLETE || !FCK.Events.FireEvent( "OnPaste" ) ) ;
break ;
}
-
- if ( bPrevent )
- {
- e.preventDefault() ;
- e.stopPropagation() ;
- }
}
+ else if ( e.shiftKey && !e.ctrlKey && !e.altKey && e.keyCode == 45 ) // SHIFT +
+ bPrevent = ( FCK.Status != FCK_STATUS_COMPLETE || !FCK.Events.FireEvent( "OnPaste" ) ) ;
+
+ if ( bPrevent )
+ {
+ e.preventDefault() ;
+ e.stopPropagation() ;
+ }
}
this.EditorDocument.addEventListener( 'keypress', oOnKeyDown, true ) ;
@@ -126,6 +139,9 @@
{
this.document.body.innerHTML = this._FCK_HTML ;
this._FCK_HTML = null ;
+
+ if ( !FCK_StartupValue )
+ FCK.ResetIsDirty() ;
}
}
this.EditorWindow.addEventListener( 'load', this._OnLoad, true ) ;
@@ -151,6 +167,18 @@
// Tell Gecko to use or not the tag for the bold, italic and underline.
FCK.EditorDocument.execCommand( 'useCSS', false, !FCKConfig.GeckoUseSPAN ) ;
+
+ // Analysing Firefox 1.5 source code, it seams that there is support for a
+ // "insertBrOnReturn" command. Applying it gives no error, but it doesn't
+ // gives the same behavior that you have with IE. It works only if you are
+ // already inside a paragraph and it doesn't render correctly in the first enter.
+ // FCK.EditorDocument.execCommand( 'insertBrOnReturn', false, false ) ;
+
+ // Tell Gecko (Firefox 1.5+) to enable or not live resizing of objects (by Alfonso Martinez)
+ FCK.EditorDocument.execCommand( 'enableObjectResizing', false, !FCKConfig.DisableImageHandles ) ;
+
+ // Disable the standard table editing features of Firefox.
+ FCK.EditorDocument.execCommand( 'enableInlineTableEditing', false, !FCKConfig.DisableTableHandles ) ;
}
catch (e) {}
}
@@ -165,8 +193,39 @@
catch(e) {}
}
+// @Packager.Compactor.Remove.Start
+if ( FCKBrowserInfo.IsSafari )
+{
FCK.SetHTML = function( html, forceWYSIWYG )
{
+ if( window.console ) window.console.log( 'FCK.SetHTML()' ) ; // @Packager.Compactor.RemoveLine
+
+ sHtml =
+ FCKConfig.DocType +
+ '' +
+ '' +
+ '' +
+ '' ;
+
+// sHtml += FCK.TempBaseTag ;
+ sHtml += '' + html + '' ;
+
+ this.EditorDocument.open() ;
+ this.EditorDocument.write( sHtml ) ;
+ this.EditorDocument.close() ;
+
+// this.InitializeBehaviors() ;
+
+// FCK.MakeEditable() ;
+ FCK.EditorDocument.designMode = 'on' ;
+ FCK.OnAfterSetHTML() ;
+}
+}
+else
+{
+// @Packager.Compactor.Remove.End
+FCK.SetHTML = function( html, forceWYSIWYG )
+{
// Firefox can't handle correctly the editing of the STRONG and EM tags.
// We must replace them with B and I.
html = html.replace( FCKRegexLib.StrongOpener, ' 0 && !(e.ctrlKey || e.altKey || e.shiftKey) )
{
@@ -205,6 +214,7 @@
if ( forceWYSIWYG || FCK.EditMode == FCK_EDITMODE_WYSIWYG )
{
html = FCKConfig.ProtectedSource.Protect( html ) ;
+ html = FCK.ProtectUrls( html ) ;
var sHtml ;
@@ -238,7 +248,8 @@
sHtml += '' + html + '