1 | <!DOCTYPE html> <html> |
---|
2 | |
---|
3 | <head> |
---|
4 | <title>Prueba CKEditor</title> |
---|
5 | <meta charset="UTF-8"> |
---|
6 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
---|
7 | <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> |
---|
8 | <script src="../../includes/ckeditor/ckeditor.js"></script> |
---|
9 | |
---|
10 | <script type="text/javascript"> |
---|
11 | $(function () { |
---|
12 | var arrayTxtArea = ["txta1", "txta2", "txta3", "txta4"]; |
---|
13 | var total = arrayTxtArea.length; |
---|
14 | for (var i = 0; i < total; i++) { |
---|
15 | CKEDITOR.replace(arrayTxtArea[i]); |
---|
16 | console.log('creada') |
---|
17 | } |
---|
18 | }); |
---|
19 | </script> |
---|
20 | |
---|
21 | </head> |
---|
22 | <body> |
---|
23 | <textarea id="txta1" name="txta1"></textarea> |
---|
24 | <textarea id="txta2" name="txta2"></textarea> |
---|
25 | <textarea id="txta3" name="txta3"></textarea> |
---|
26 | <textarea id="txta4" name="txta4"></textarea> |
---|
27 | </body> |
---|
28 | |
---|
29 | </html> |
---|