1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
2 | <html xmlns="http://www.w3.org/1999/xhtml"> |
---|
3 | <head> |
---|
4 | <title></title> |
---|
5 | <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script> |
---|
6 | <script type="text/javascript" src="/ckeditor/ckeditor_source.js"></script> |
---|
7 | <script type="text/javascript" src="/ckeditor/_source/adapters/jquery.js"></script> |
---|
8 | <script type="text/javascript"> |
---|
9 | |
---|
10 | $().ready(function(){ |
---|
11 | $( '#ta_research_degree' ).ckeditor({ |
---|
12 | toolbar:'Basic', |
---|
13 | height:'45px', |
---|
14 | //turns off the enter key |
---|
15 | keystrokes:[[13,'toolbarFocus']] |
---|
16 | }); |
---|
17 | $("#btn_add_degree").bind("click",function(){ alert($("#ta_research_degree").val())}); |
---|
18 | }); |
---|
19 | |
---|
20 | </script> |
---|
21 | </head> |
---|
22 | <body> |
---|
23 | <div> |
---|
24 | <textarea name="ta_research_degree" id="ta_research_degree" cols="0" rows="0"></textarea> |
---|
25 | </div> |
---|
26 | <div> |
---|
27 | <input type="button" name="btn_add_degree" id="btn_add_degree" value="Test"> |
---|
28 | </div> |
---|
29 | </body> |
---|
30 | </html> |
---|