var sel = fw.selection; var dom = fw.getDocumentDOM(); dom.deleteSelection(false); for(var a=0;a