Home  >  Article  >  Backend Development  >  YII框架中调用kindeditor的有关问题

YII框架中调用kindeditor的有关问题

WBOY
WBOYOriginal
2016-06-13 10:58:51838browse

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>



createUrl('commodity/add');?>" class="pageForm required-validate" enctype="multipart/form-data" onsubmit="return iframeCallback(this, dialogAjaxDone);">



































 




 






Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn