想拿到选中的 值 做一些事情..    不知道怎么办?  高手教下我!

解决方案 »

  1.   

    用htmleidtor的el来操作 也就是用原始的document来操作
    function getSelectedVal() {
        var userSelection;
        if (window.getSelection) {
            // 现代浏览器
            userSelection = window.getSelection();
        } else if (document.selection) {
            // IE浏览器 
            userSelection = document.selection.createRange();
        }
        return userSelection.text;
    }
      

  2.   


      htmlEdit.getValue() 这个值? 
      

  3.   

    给你的htmlEditor一个id,然后Ext.getCmp('editorid').getValue(); 来得到htmlEditor的值
      

  4.   

    +10086
    获取document元素的话是可以Ext.getCmp(id).getEl();