function return_ewebeditor_value()
{
  
//取得編輯器中的值
  var v=window.frames("eWebEditor1").window.frames("eWebEditor").document.getElementsByTagName("body")[0].innerHTML;
  
//下面取得去掉HTML標記的後的結果
  v=v.replace(/<[^>]*>/gi,'');
  
//下面取得去掉&nbsp;
  v=v.replace(/&nbsp(;)?/g,'');
  
//返回最後的結果
  return v;
}
此function僅適用於eWebEditor編輯器.

相关文章:

  • 2021-09-09
  • 2022-12-23
  • 2022-02-25
  • 2021-11-22
  • 2022-03-13
  • 2022-12-23
  • 2022-01-11
  • 2022-12-23
猜你喜欢
  • 2021-08-06
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
  • 2022-12-23
相关资源
相似解决方案