#40 extended nodepath

open
nobody
None
5
2006-03-21
2006-03-21
Holger Hees
No

with the ability to select elements from pathlist

Discussion

  • Holger Hees

    Holger Hees - 2006-03-21
    • summary: extended version --> extended nodepath
     
  • Holger Hees

    Holger Hees - 2006-03-21

    Logged In: YES
    user_id=731288

    thanks to Alfonso Martínez de Lizarrondo for the great
    notepath plugin

    this is an extended version.

     
  • Holger Hees

    Holger Hees - 2006-03-21

    extended version

     
  • Holger Hees

    Holger Hees - 2006-06-27

    bugfixes for fckeditor 2.3.1-cvs and multi-editor abbility

     
  • quiprodest

    quiprodest - 2006-07-18

    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='&nbsp;'; // + 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>&lt;'+getNodeName(node)+'&gt;</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 = '&nbsp;' + text;
    //MODIFIED
    text='<a style="text-decoration:none"
    href="javascript:selectSBElement(\''+oStatusBar.Instance.Name+'\','+i+')">&lt;'+getNodeName(node)+'&gt;</a>'
    + text;
    //END MODIFIED
    node=node.parentNode;
    //DELETED firstNode=true;
    i++;
    }
    //update the text
    //MODIFIED
    oStatusBar.Bar.innerHTML='<div style="font:10px
    Verdana">&lt;body&gt;'+text+'</div>';
    //END MODIFIED
    }

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks