YII框架中调用kindeditor的问题
<script><br />
KindEditor.ready(function(K) {<br />
alert("bbbb");<br />
var editor1 = K.create('textarea[name="Form[explain]"]', {<br />
cssPath : '<?php echo Yii::app()->request->baseUrl; ?>/admin/kindeditor/plugins/code/prettify.css',<br />
uploadJson : '<?php echo Yii::app()->request->baseUrl; ?>/admin/kindeditor/php/upload_json.php',<br />
fileManagerJson : '<?php echo Yii::app()->request->baseUrl; ?>/admin/kindeditor/php/file_manager_json.php',<br />
allowFileManager : true,<br />
afterCreate : function() {<br />
alert("aaaaaaaaa");<br />
var self = this;<br />
K.ctrl(document, 13, function() {<br />
self.sync();<br />
K('form[name=example]')[0].submit();<br />
});<br />
K.ctrl(self.edit.doc, 13, function() {<br />
self.sync();<br />
K('form[name=example]')[0].submit();<br />
});<br />
}<br />
});<br />
prettyPrint();<br />
});<br />
<br />
</script>