JSP-一个ckeditor实现
版权声明:【北京Java青年】:456588754 https://blog.csdn.net/Amen_Wu/article/details/53457502 第一步:向WebContent下添加ckeditor插件文件夹 第二步: //js的src属性填写ckeditor文件夹下的ckeditor.js地址 <head> <script type="text/javascript" src="../ckeditor/ckeditor.js"></script> </head> //将textarea的class改为ckeditor <body> <textarea class="ckeditor" id="ncontent" name="ncontent" cols="70" rows="10"></textarea> </body> 第三步: 想要控制编辑器尺寸的话,可以在textarea外边添加input标签,设置input的style内的尺寸属性即可。 文章来源: https://blog.csdn.net/Amen_Wu/article/details/53457502