2016-07-20 4 views
0

私はいくつかのHTMLリッチテキストエディタを作ろうとしています。私はすでにCKEditorバージョンのドキュメントに似バウアーからCKEditorバージョンをインストールしている:、CKeditor Bowerとの使い方

{ 
    "name": "my-project", 
    "dependencies": { 
    "ckeditor": "4" 
    } 
} 

しかし、私はインストールし、通常からそれを使用する方法を示す例がある文書で、それを使用する方法を知りませんが、 Bowerからではありません:

<!DOCTYPE html> 
<html> 
    <head> 
     <meta charset="utf-8"> 
     <title>A Simple Page with CKEditor</title> 
     <!-- Make sure the path to CKEditor is correct. --> 
     <script src="../ckeditor.js"></script> 
    </head> 
    <body> 
     <form> 
      <textarea name="editor1" id="editor1" rows="10" cols="80"> 
       This is my textarea to be replaced with CKEditor. 
      </textarea> 
      <script> 
       // Replace the <textarea id="editor1"> with a CKEditor 
       // instance, using default configuration. 
       CKEDITOR.replace('editor1'); 
      </script> 
     </form> 
    </body> 
</html> 

私のプロジェクトでこのckeditor.jsを使用せずに使用する方法を教えてください。

答えて

1

bower.jsonファイルがどこにあっても、どこにでも 'bower_components'フォルダがあります。ドリルダウンして、必要なckeditor.jsファイルを見つけて、htmlのパスをこのパスに設定します。

それはこのようなものになります。私は、JSPを使用してい

<script src="../bower_components/ckeditor/ckeditor.js"></script> 
+0

を、この

関連する問題