var h = document.getElementById('content').offsetHeight; //得到textarea的高度
CKEDITOR.replace('content', {height:'100%'});//设置height:100%没用
CKEDITOR.on('instanceReady', function (e) {
var td = document.getElementById('cke_contents_' + e.editor.name), tbody = td.parentNode.parentNode;
td.style.height = h - tbody.rows[0].offsetHeight - tbody.rows[2].offsetHeight + 'px';
})

 

相关文章:

  • 2022-02-03
  • 2021-09-07
  • 2021-10-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-12
  • 2021-05-27
猜你喜欢
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案