Modificare il file:
\FckEditor\plugins\aaeditor\fckplugin.js
var AAEditor = function() { } AAEditor.prototype.GetState = function() { return FCK_TRISTATE_OFF; } function applyCSS(css){ var node=FCKSelection.GetSelectedElement(); if(node){ node.style.cssText=css; return; } node=FCKSelection.GetParentElement(); if(document.all){ // internet explorer if(node&&FCK.ToolbarSet.CurrentInstance.EditorDocument.selection.type == 'Text'){// a text is selected var oSelection = FCK.ToolbarSet.CurrentInstance.EditorDocument.selection ; var oRange = oSelection.createRange(); oRange.pasteHTML( '<span style="'+css+'">'+oRange.htmlText+'</span>' ) ; } else { node.style.cssText=css; } }else{ // firefox if(node&&FCKSelection.GetType() == 'Text'){// a text is selected var oSelection = FCK.ToolbarSet.CurrentInstance.EditorWindow.getSelection() ; FCK.InsertHtml( '<span style="'+css+'">'+oSelection+'</span>'); }else node.style.cssText=css; } } AAEditor.prototype.Execute = function(key) { var s=''; var node=FCKSelection.GetSelectedElement(); if(node){ s=node.style.cssText; FCKDialog.OpenDialog( FCKLang.AAStyleTitle , FCKLang.AAStyleTitle, FCKConfig.BasePath+'plugins/aaeditor/aaeditor.html#'+s, 750, 480 ,applyCSS, window) ; }else{ node = FCKSelection.GetParentElement(); if(node){ s=node.style.cssText; FCKDialog.OpenDialog( FCKLang.AAStyleTitle , FCKLang.AAStyleTitle, FCKConfig.BasePath+'plugins/aaeditor/aaeditor.html#'+s, 750, 480 ,applyCSS, window) ; }else{ alert(FCKLang.AAMsgError); } } } FCKCommands.RegisterCommand('aaeditor', new AAEditor()) ; var item = new FCKToolbarButton('aaeditor', "aaeditor"); item.IconPath = FCKConfig.PluginsPath + 'aaeditor/icon.gif'; FCKToolbarItems.RegisterItem('aaeditor', item);
[
Íàçàä
]