kentico_zdenekc
-
3/19/2009 11:36:04 AM
RE:FCKEditor Style Name For Each Site
Hi,
fortunatelly no, there could be a way to accomplish this. However, some javascript programming will be needed.
You could edit fckstyles.js from full FCKeditor package path "editor\_source\internals\" function _LoadStylesXml : function()
Right at the beginning of the following "for" cycle:
// Add each style to our "Styles" collection. for ( var i = 0 ; i < styleNodes.length ; i++ )
..here you could compare actual domain with the style name prefix and either remove it (if it's not suited for the current domain-site) or keep it (probably with removing the prefix for better appearance) in the list (array).
By default, this code is part of "inline compressed" code in the files "fckeditorcode_gecko.js" and "fckeditorcode_ie.js" The resulting code after modifications can be either put into the appropriate folder "as is", or there is some "manual" or "tool" how to inline-compress the souce code. Please refer to FCKeditor pages or google :)
Hope this will work. We will appreciate if you let us know... Thanks.
Best regards, Zdenek C.
|