日期:2014-05-17  浏览次数:20483 次

大神们?怎么把ckeditor整合到extjs4里面呢?
网上看了很多代码,但是都没有成功啊。希望高人能指点一下啊!

------解决方案--------------------
起码贴点代码,别人才好判断吧
------解决方案--------------------
兄弟刚才试了一下用“contentEl: 'divckeditor'”,这个方法可以
另外,我用 "Sencha" 这个工具,推荐给你。


{
                    xtype: 'panel',
                    contentEl: 'divckeditor',
                    title: 'My Panel'
                }



<!DOCTYPE html>

<!-- Auto Generated with Sencha Architect -->
<!-- Modifications to this file will be overwritten. -->
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>test</title>
    <script src="http://cdn.sencha.com/ext/gpl/4.2.1/ext-all.js"></script>
    <link rel="stylesheet" href="http://cdn.sencha.com/ext/gpl/4.2.1/resources/ext-theme-classic/ext-theme-classic-all.css">
    <script type="text/javascript" src="app.js"></script>
    <script src="../ckeditor_4.2.2_standard/ckeditor/ckeditor.js" type="text/javascript"></script>

</head>
<body>

<div id="divckeditor" style="height:500px">
 <textarea class="ckeditor" name="editor1"></textarea>

</div>
</body>


</html>