1 | <!DOCTYPE html> |
---|
2 | <html> |
---|
3 | <head> |
---|
4 | <meta http-equiv="content-type" content="text/html; charset=UTF-8"> |
---|
5 | <title>Replace Textarea by Code — CKEditor Sample</title> |
---|
6 | <meta charset="utf-8"> |
---|
7 | <script src="//cdn.ckeditor.com/4.5.3/standard/ckeditor.js"></script> |
---|
8 | </head> |
---|
9 | <body> |
---|
10 | <form name="form1"> |
---|
11 | <textarea name="text1">worng spelilng</textarea> |
---|
12 | <textarea name="text2">worng spelilng</textarea> |
---|
13 | <textarea name="text3">worng spelilng</textarea> |
---|
14 | <textarea name="text4"></textarea> |
---|
15 | <textarea name="text5"></textarea> |
---|
16 | </form> |
---|
17 | <script> |
---|
18 | |
---|
19 | for( var i=1; i<=5; i++ ) { |
---|
20 | CKEDITOR.replace( 'text' + i , { |
---|
21 | scayt_autoStartup :true |
---|
22 | }); |
---|
23 | } |
---|
24 | |
---|
25 | </script> |
---|
26 | </body> |
---|
27 | </html> |
---|