Re: SearchSelectionElement

  •  01-13-2014, 8:57 AM

    Re: SearchSelectionElement

     Hi

     

    I solved this by doing....

    function getImageResizeURL() {
    // get the cute editor instance
    var editor1 = document.getElementById('<%=Editor1.ClientID%>').editor;
    var test = editor1.ExtractRangeHTML();
    var nodes = editor1.ExtractRangeNodes();
    if (nodes.length != 0) {
      if (nodes[0].GetName() == "img") {
        return nodes[0].GetAttribute("src");
      }
    }

     

    I found ExtractRangeNodes in your documentation, but only found GetName and GetAttribute by accident in another post. Do you have this and all the other methods in your documentation somewhere, it would really help if I could see all commands available.

     

    Thanks 

     
View Complete Thread