回答編集履歴
1
追記
answer
CHANGED
|
@@ -3,4 +3,12 @@
|
|
|
3
3
|
これを参考に javascript -> coffeescript にしてみては如何でしょう。
|
|
4
4
|
|
|
5
5
|
javascript -> coffeescript には js2coffee を使うと便利です。
|
|
6
|
-
- [http://www.d-wood.com/blog/2014/09/11_6801.html](http://www.d-wood.com/blog/2014/09/11_6801.html)
|
|
6
|
+
- [http://www.d-wood.com/blog/2014/09/11_6801.html](http://www.d-wood.com/blog/2014/09/11_6801.html)
|
|
7
|
+
|
|
8
|
+
追記: 2016-03-18 0:23
|
|
9
|
+
- 範囲選択した文字列をクリップボードにコピーする [http://coleto84.blog.fc2.com/blog-entry-121.html](http://coleto84.blog.fc2.com/blog-entry-121.html)
|
|
10
|
+
> ...
|
|
11
|
+
> 2)フォームのinput要素やtextarea要素の中の範囲選択された文字列を取得する
|
|
12
|
+
> しかし「var str = window.getSelection();」の方法では、フォームのinput要素やtextarea要素の中の範囲選択された文字列が取得できません。
|
|
13
|
+
> では、フォームのinput要素やtextarea要素の中の範囲選択された文字列を取得する方法は? 結論からいうと、以下のような記述となります。
|
|
14
|
+
> ...
|