Ext htmlEditor 如何获取选中的值? 想拿到选中的 值 做一些事情.. 不知道怎么办? 高手教下我! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用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;} htmlEdit.getValue() 这个值? 给你的htmlEditor一个id,然后Ext.getCmp('editorid').getValue(); 来得到htmlEditor的值 +10086获取document元素的话是可以Ext.getCmp(id).getEl(); 不修改代码open一个新窗口 为什么我用火狐浏览器进不到js里面呢? 这是什么语法错误~~~~~ 求助 JS 正则 火狐上weave的问题.如何进行覆盖操作 jquery为什么不能使用after和before来创造一个table 谁用过raphael画柱状图 请问拆分合并表格单元格的代码怎么写? 在WIN2000编的JS在WIN XP下不好使了? 啊啊啊啊啊!!!这该怎么办呢?! JQUERY EASYUI 如何获取TABS的点击对象?? javascript ajax闭包问题
function getSelectedVal() {
var userSelection;
if (window.getSelection) {
// 现代浏览器
userSelection = window.getSelection();
} else if (document.selection) {
// IE浏览器
userSelection = document.selection.createRange();
}
return userSelection.text;
}
htmlEdit.getValue() 这个值?
获取document元素的话是可以Ext.getCmp(id).getEl();