Play Frameworkでckeditorを使う

build.sbt

  "org.webjars" % "ckeditor" % "4.4.1",

app/views/samples/ckeditor.scala.html

@()
@import play.i18n._

@main(Messages.get("home.title")) {
<textarea class="ckeditor" name="editor1"></textarea>
}{

}{
        <script type='text/javascript' src='@routes.WebJarAssets.at(WebJarAssets.locate("ckeditor.js"))'></script>
        <script type='text/javascript' src='@routes.WebJarAssets.at(WebJarAssets.locate("adapters/jquery.js"))'></script>
        <script type='text/javascript' src="@routes.Assets.at("javascripts/ckeditor.js")"></script>
}

public/javascripts/ckeditor.js

$( document ).ready( function() {
    $( 'textarea#editor1' ).ckeditor();
} );

https://github.com/YoshiteruIwasaki/sample-play-java-app/commit/a12c4bd45f0d36935d2b7eca9c5f8d3d266d3203