2 Replies Latest reply on Nov 10, 2011 4:10 PM by dsackett

    How to move text with styles between docs? [CS 5.5 + JS]


      Here's what I've got to get a document & insertion point reference:


        if (! app.selection[0] instanceof InsertionPoint) {
           alert("Your cursor must be a single insertion point! Try again.", "Insert single Word file");
       var currDoc = app.documents[0];
       var importHere = currDoc.selection[0]



      I've got the clean up routine working, can grab the cleaned text with



       cleanupFrame.paragraphs.itemByRange(startFrame.paragraphs[0], startFrame.paragraphs[-1]).select();


      But then, what? It must be simple enough to be invisible to me. I've tried some different stuff, but I must need a nudge.