ㄓㄤㄑㄧㄤ

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>

posted @ 2015-04-29 17:22  ㄓㄤㄑㄧㄤ  阅读(340)  评论(0编辑  收藏  举报
哈哈,页脚部分。