0

我有一个奇怪的问题。每当我单击 CKEditor 模板按钮时,模板窗口就会打开而没有任何内容。问题似乎与我的设置有关,因为这在 CKEditor 示例中运行良好。但我无法找出原因,因为控制台和萤火虫中没有错误。以前有人遇到过这个问题吗?

4

1 回答 1

1

工作演示 http://jsfiddle.net/ffP2K/1/ http://jsfiddle.net/ffP2K/1/show/

我希望你有正确的脚本参考,下面的示例应该会有所帮助。

如果我错过了什么,请告诉我。

好链接:http ://ckeditor.com/blog/CKEditor_for_jQuery

希望这可以帮助,

脚本

  <script type='text/javascript' src="http://ckeditor.com//apps/ckeditor/3.5.2/ckeditor.js"></script>

代码

var editor = CKEDITOR.replace( 'editor' );


$('#click').click(function(){
    // Find outer div
    var div = document.getElementById('outer');

    // Get value from height textbox
    var height = document.getElementById('height').value;


    // Uses jQuery framework to set the height of the div
    $(div).css('height', height + 'px');

    // Tells CKEDITOR to resize to the desired height, and width
    editor.resize($(div).width(),height);
    return false;
})

​

工作图像

在此处输入图像描述

于 2012-06-18T06:50:33.930 回答