JSP如何导入ckeditor
<textarea rows="3" cols="100" id="editor1"></textarea> <script> // Replace the <textarea id="editor"> with an CKEditor // instance, using default configurations.var editor = CKEDITOR.replace('editor1', { toolbar : [ ['Bold','Italic','Underline','-','NumberedList','BulletedList'], ['Styles','Format','Font','FontSize','-','TextColor','BGColor'] ] }); function save(){ //editor.updateElement(); $("#"+$("#current_id").val()).attr("title",$('#editor1').val()); //alert($('#editor1').val()); $('#editor1').val(""); $('#newNote').window('close'); } </script>
另外要导入<script type="text/javascript" src="ckeditor/ckeditor.js"></script>