- assigned_to: nobody --> fredck
trying to use the FCKTools.AppendStyleSheet returns a
different kind of object between Firefox and IE, in
Firefox it is the <link> element, but in IE it's some
kind of reference to the stylesheet.
Currently the returned object it's only used internally
in fck_1_gecko.js:
if ( FCKConfig.ShowBorders )
{
var oStyle = FCKTools.AppendStyleSheet(
this.EditorDocument, FCKConfig.FullBasePath +
'css/fck_showtableborders_gecko.css' ) ;
oStyle.setAttribute( '_fcktemp', 'true' ) ;
}
Trying to set the same kind of attribute right now on
the returned object fails on IE.
To fix it change the function in fcktools_ie.js
// Appends a CSS file to a document.
FCKTools.AppendStyleSheet = function( documentElement,
cssFileUrl )
{
return documentElement.createStyleSheet( cssFileUrl
).owningElement ;
}
just appending .owningElement is enough.
Logged In: YES
user_id=572424
Hi,
This patch, or a similar implementation, has been included in
FCKeditor and has been committed in the SVN. It will be
available in the next release.
For more information about the FCKeditor SVN system, please use
the following URL:
https://sourceforge.net/svn/?group_id=75348
Best regards,
FredCK
http://www.fckeditor.net
"Support Open Source Software... What about a donation today?"
PS.: This is a canned response.
Log in to post a comment.