Re: Highlight certain words with JavaScript

  •  06-05-2009, 7:54 AM

    Re: Highlight certain words with JavaScript

    Sweet!
     
    In addition to that, this is what I had to do...
     
    On client init, 
     
    //Allows for the ATOMICSELECTION Attribute to be used, which selects the element as a single unit
    //http://msdn.microsoft.com/en-us/library/ms537835(VS.85).aspx
    document.IDM_ATOMICSELECTION = true;
     
     
    When the user wants to add a field,
     
     html = "<div ATOMICSELECTION='true' UNSELECTABLE='OFF' contenteditable='false'>" + field+ "</div>";
    this.CE_EmailBody.PasteHTML(html);     

     
    Using the  IDM_ATOMICSELECTION property only works in IE unfortunately...
     
    Thanks for your help!
View Complete Thread