Here is a change I thought was important. If you want to edit an image or a table by double clicking on it (like Microsoft way ;P) add those two things:
########################
add anywhere in "fckeditor.html"
########################
<script language="javascript" event="onDblClick" for="objContent">
<!--
dblClickAction() ;
//-->
</script>
########################
add anywhere in "js/fck_editor.js"
########################
function dblClickAction()
{
// If over a link
if (checkDecCommand(DECMD_UNLINK) == OLE_TRISTATE_UNCHECKED)
{
dialogLink() ;
}
// Verifies if the selection is a TABLE or IMG
var sel = objContent.DOM.selection.createRange() ;
var sTag ;
if (objContent.DOM.selection.type != 'Text' && sel.length == 1)
sTag = sel.item(0).tagName ;
if (sTag == "TABLE")
{
dialogTable() ;
}
else if (sTag == "IMG")
{
dialogImage() ;
}
}
########################
add anywhere in "fckeditor.html"
########################
<script language="javascript" event="onDblClick" for="objContent">
<!--
dblClickAction() ;
//-->
</script>
########################
add anywhere in "js/fck_editor.js"
########################
function dblClickAction()
{
// If over a link
if (checkDecCommand(DECMD_UNLINK) == OLE_TRISTATE_UNCHECKED)
{
dialogLink() ;
}
// Verifies if the selection is a TABLE or IMG
var sel = objContent.DOM.selection.createRange() ;
var sTag ;
if (objContent.DOM.selection.type != 'Text' && sel.length == 1)
sTag = sel.item(0).tagName ;
if (sTag == "TABLE")
{
dialogTable() ;
}
else if (sTag == "IMG")
{
dialogImage() ;
}
}
Custom feature: DbleClick Image/Table to Edit