| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|---|
| 2 | <html lang="en"> |
|---|
| 3 | <head> |
|---|
| 4 | <script type="text/javascript" src="http://nightly.ckeditor.com/15-08-04-06-08/basic/ckeditor.js"></script> |
|---|
| 5 | |
|---|
| 6 | <title>CKEditor RPT Scan Sample</title> |
|---|
| 7 | </head> |
|---|
| 8 | <body> |
|---|
| 9 | <textarea id="editor1" rows="5" cols="80"></textarea> |
|---|
| 10 | <textarea id="editor2" rows="5" cols="80"></textarea> |
|---|
| 11 | |
|---|
| 12 | <input type="button" class="lotusBtn" value="reset" onclick="resetTextArea();" /> |
|---|
| 13 | |
|---|
| 14 | <script type="text/javascript"> |
|---|
| 15 | textBox = CKEDITOR.replace('editor1', {width: '35%'}); |
|---|
| 16 | |
|---|
| 17 | function resetTextArea() { |
|---|
| 18 | textBox.destroy(); |
|---|
| 19 | textBox = null; |
|---|
| 20 | textBox = CKEDITOR.replace('editor1', {width: '35%'}); |
|---|
| 21 | } |
|---|
| 22 | </script> |
|---|
| 23 | |
|---|
| 24 | </body> |
|---|
| 25 | </html> |
|---|
| 26 | |
|---|
| 27 | |
|---|