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

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

WBOY
Release: 2016-06-13 13:02:16
Original
864 people have browsed it

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);">



































 




 






Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template