Search code examples
springmavenckeditor

using ckeditor does not work: when I click the path, it isn't going to the related file


I want to use ckeditor in a web page created in spring mvc 3.1. It is maven project. I downloaded required files from http://ckeditor.com/download. I added taglib

<%@ taglib uri="http://ckeditor.com" prefix="ckeditor" %>

on the head section.

In form, I wrote the code below. path="aciklama" is the property of my class. I want to bind data retrieved from ckeditor.

form method="post" modelAttribute="my class name">
.......
.....
<form:textarea cols="80" id="editor1" name="editor1" rows="10" path="aciklama"></form:textarea>
</form>
<ckeditor:replace replace="editor1" basePath="/ckeditor/" />
</body>

I also added these scripts, but it did not work:

<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="/ckeditor/adapters/jquery.js"></script>

When I click the path, it isn't going to the related file. My ckeditor folder is under webpages. When I pass through files tab, It is shown under the webapp folder.


Solution

  • You can use this link for the reference

    May be you have path problem i.e it is unable to find your ckeditor.js