Here is the modified code for a DreamWeaver-like visualization
i.e.:
<body><p><strong>
------------------------------------------
createStatusBar = function(oStatusBar) {
var node;
var text=' '; // + FCKSelection.GetType() + " " + new
Date();
var firstNode=false;
//the selected node (not valid if nothing is selected)
node=oStatusBar.Instance.Selection.GetSelectedElement();
if (node) {
//MODIFIED
text='<b><'+getNodeName(node)+'></b>' + text;
//END MODIFIED
//DELETED firstNode=true;
}
var i=0;
//parent, up to the body
node=oStatusBar.Instance.Selection.GetParentElement();
sbNode[oStatusBar.Instance.Name]=node;
while (node && node.nodeName!='BODY') {
//DELETED if(firstNode) text = ' ' + text;
//MODIFIED
text='<a style="text-decoration:none"
href="javascript:selectSBElement(\''+oStatusBar.Instance.Name+'\','+i+')"><'+getNodeName(node)+'></a>'
+ text;
//END MODIFIED
node=node.parentNode;
//DELETED firstNode=true;
i++;
}
//update the text
//MODIFIED
oStatusBar.Bar.innerHTML='<div style="font:10px
Verdana"><body>'+text+'</div>';
//END MODIFIED
}
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=731288
thanks to Alfonso Martínez de Lizarrondo for the great
notepath plugin
this is an extended version.
extended version
bugfixes for fckeditor 2.3.1-cvs and multi-editor abbility
Logged In: YES
user_id=1359940
Here is the modified code for a DreamWeaver-like visualization
i.e.:
<body><p><strong>
------------------------------------------
createStatusBar = function(oStatusBar) {
var node;
var text=' '; // + FCKSelection.GetType() + " " + new
Date();
var firstNode=false;
//the selected node (not valid if nothing is selected)
node=oStatusBar.Instance.Selection.GetSelectedElement();
if (node) {
//MODIFIED
text='<b><'+getNodeName(node)+'></b>' + text;
//END MODIFIED
//DELETED firstNode=true;
}
var i=0;
//parent, up to the body
node=oStatusBar.Instance.Selection.GetParentElement();
sbNode[oStatusBar.Instance.Name]=node;
while (node && node.nodeName!='BODY') {
//DELETED if(firstNode) text = ' ' + text;
//MODIFIED
text='<a style="text-decoration:none"
href="javascript:selectSBElement(\''+oStatusBar.Instance.Name+'\','+i+')"><'+getNodeName(node)+'></a>'
+ text;
//END MODIFIED
node=node.parentNode;
//DELETED firstNode=true;
i++;
}
//update the text
//MODIFIED
oStatusBar.Bar.innerHTML='<div style="font:10px
Verdana"><body>'+text+'</div>';
//END MODIFIED
}