| 1 | <!DOCTYPE html> |
|---|
| 2 | <html> |
|---|
| 3 | <!-- |
|---|
| 4 | Created using jsbin.com |
|---|
| 5 | Source can be edited via http://jsbin.com/UNOWOba/5/edit |
|---|
| 6 | --> |
|---|
| 7 | <head> |
|---|
| 8 | <title>JS Bin</title> |
|---|
| 9 | <meta charset=utf-8 /> |
|---|
| 10 | <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script> |
|---|
| 11 | <script src="../ckeditor.js"></script> |
|---|
| 12 | </head> |
|---|
| 13 | <body style="padding-top: 100px;"> |
|---|
| 14 | -framed editor<br /> |
|---|
| 15 | <div> |
|---|
| 16 | <textarea cols="80" id="editor1" name="editor1" rows="10"> |
|---|
| 17 | <span style="display:none" contenteditable="false"> </span> |
|---|
| 18 | </textarea> |
|---|
| 19 | </div> |
|---|
| 20 | <hr/> |
|---|
| 21 | |
|---|
| 22 | -display:none<br/> |
|---|
| 23 | -innerHTML:&nbsp;<br/> |
|---|
| 24 | <div id="editable1" contenteditable="true" style="border: 1px solid #000; padding: 5px;"> |
|---|
| 25 | <span style="display:none"> </span> |
|---|
| 26 | </div> |
|---|
| 27 | <hr/> |
|---|
| 28 | |
|---|
| 29 | -contenteditable:false<br/> |
|---|
| 30 | -innerHTML:&nbsp;<br/> |
|---|
| 31 | <div id="editable2" contenteditable="true" style="margin-top: 10px; border: 1px solid #000; padding: 5px;"> |
|---|
| 32 | <span contenteditable="false"> </span> |
|---|
| 33 | </div> |
|---|
| 34 | <hr/> |
|---|
| 35 | |
|---|
| 36 | -display:none<br/> |
|---|
| 37 | -contenteditable:false<br/> |
|---|
| 38 | -innerHTML:&nbsp;<br/> |
|---|
| 39 | <div id="editable4" contenteditable="true" style="margin-top: 10px; border: 1px solid #000; padding: 5px;"> |
|---|
| 40 | <span style="display:none" contenteditable="false"> </span> |
|---|
| 41 | </div> |
|---|
| 42 | <hr/> |
|---|
| 43 | |
|---|
| 44 | -display:none<br/> |
|---|
| 45 | -innerHTML:<br/> |
|---|
| 46 | <div id="editable3" contenteditable="true" style="margin-top: 10px; border: 1px solid #000; padding: 5px;"> |
|---|
| 47 | <span style="display:none"></span> |
|---|
| 48 | </div> |
|---|
| 49 | <hr/> |
|---|
| 50 | |
|---|
| 51 | -contenteditable:false<br/> |
|---|
| 52 | -innerHTML:<br/> |
|---|
| 53 | <div id="editable4" contenteditable="true" style="margin-top: 10px; border: 1px solid #000; padding: 5px;"> |
|---|
| 54 | <span contenteditable="false"></span> |
|---|
| 55 | </div> |
|---|
| 56 | <hr/> |
|---|
| 57 | |
|---|
| 58 | -display:none<br/> |
|---|
| 59 | -contenteditable:false<br/> |
|---|
| 60 | -innerHTML:<br/> |
|---|
| 61 | <div id="editable4" contenteditable="true" style="margin-top: 10px; border: 1px solid #000; padding: 5px;"> |
|---|
| 62 | <span style="display:none" contenteditable="false"></span> |
|---|
| 63 | </div> |
|---|
| 64 | <script> |
|---|
| 65 | |
|---|
| 66 | |
|---|
| 67 | CKEDITOR.replace( 'editor1', { |
|---|
| 68 | allowedContent: true |
|---|
| 69 | }); |
|---|
| 70 | |
|---|
| 71 | // Turn off automatic editor creation first. |
|---|
| 72 | CKEDITOR.disableAutoInline = true; |
|---|
| 73 | |
|---|
| 74 | CKEDITOR.inline( 'editable1', { |
|---|
| 75 | allowedContent: true |
|---|
| 76 | }); |
|---|
| 77 | CKEDITOR.inline( 'editable2', { |
|---|
| 78 | allowedContent: true |
|---|
| 79 | }); |
|---|
| 80 | CKEDITOR.inline( 'editable3', { |
|---|
| 81 | allowedContent: true |
|---|
| 82 | }); |
|---|
| 83 | CKEDITOR.inline( 'editable4', { |
|---|
| 84 | allowedContent: true |
|---|
| 85 | }); |
|---|
| 86 | </script> |
|---|
| 87 | |
|---|
| 88 | </body> |
|---|
| 89 | </html> |
|---|