fckeditor如何将文字编辑区域的高度变长一些?如何用JS按钮控制

解决方案 »

  1.   


    document.getElementById("id").style.height= document.getElementById("id").style.height+ 10px;这个id是fckeditor在页面上显示的id
      

  2.   

    什么LS的不行.你自己就不会思考一下呀.晕死..... 饭是要自己嚼的.不是让别人替你吃的....
    <div><input type="hidden" id="demo" name="demo" value="" style="display:none" /><input type="hidden" id="demo___Config" value="" style="display:none" /><iframe id="demo___Frame" src="/fckeditor/editor/fckeditor.html?InstanceName=demo&amp;Toolbar=Default" width="100%" height="200" frameborder="0" scrolling="no"></iframe></div>
    <input type='button' onclick='change(900)' value='大到900' />
    <input type='button' onclick='change(200)' value='小到200' /><script>
    function change(h){
    document.getElementById('demo___Frame').style.height=h+'px';
    }</script>
      

  3.   

    你这个只能改变框架的大小,伙计!r u sure????
      

  4.   

    如果是用层的方式调用的 如何实现??<script language="JavaScript" type="text/JavaScript">
    //var SiteUrl = "/"; 
    //var Module = "JSPGen"; 
    var sBasePath = 'fckeditor/';
    var oFCKeditor = new FCKeditor( 'desc' ) ; 
    oFCKeditor.BasePath = sBasePath ; 
    oFCKeditor.Height = '200'; oFCKeditor.Width = '400' ; 
    oFCKeditor.ToolbarSet = 'Introduce';
    oFCKeditor.ReplaceTextarea();
    </script>
    &nbsp;<img src="images/editor_add.jpg" title='增加编辑器高度' tag='1' fck="desc"/>
    &nbsp; <img src="images/editor_diff.jpg" title='减少编辑器高度' tag='0' fck="desc"/>
    <div id="MM_file_list_desc"></div>
    <div id='FilePreview' style='z-index: 1000; left: 0px; width: 10px; position: absolute; top: 0px; height: 10px; display: none;'></div>
    以前看到有朋友用这种方法 但一直不知道“tag='1' fck="desc"”这个是什么意思。