function createRange()
{
var editor = document.getElementById('CE_Editor1_ID_Frame');
editor.focus();
var sel = editor.document.selection.createRange().text;
}
CE:Editor id="Editor1" runat="server"
input type='button' Value='Customize' id='selCustomize' name='selCustomize' onclick='BLOCKED SCRIPTcreateRange();'