| 1 | <!DOCTYPE html> |
|---|
| 2 | <html> |
|---|
| 3 | <head> |
|---|
| 4 | <title>Tutorial — Simple Box Widget, Spell Check enabled for inline bug</title> |
|---|
| 5 | <meta charset="utf-8"> |
|---|
| 6 | <script src="../ckeditor.js"></script> |
|---|
| 7 | <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> |
|---|
| 8 | <script src="../adapters/jquery.js"></script> |
|---|
| 9 | <script> |
|---|
| 10 | CKEDITOR.disableAutoInline = true; |
|---|
| 11 | |
|---|
| 12 | $( document ).ready(function() { |
|---|
| 13 | $('#editor1').ckeditor({ |
|---|
| 14 | extraPlugins: 'simplebox,wsc,scayt', |
|---|
| 15 | contentsCss: [ |
|---|
| 16 | '../contents.css', '../plugins/simplebox/samples/contents2.css' |
|---|
| 17 | ], |
|---|
| 18 | scayt_autoStartup: false, |
|---|
| 19 | height: 160, |
|---|
| 20 | toolbarGroups: [ |
|---|
| 21 | { name: 'clipboard', groups: [ 'scayt','clipboard', 'undo' ] }, |
|---|
| 22 | { name: 'editing', groups: [ 'spellchecker' ] }, |
|---|
| 23 | { name: 'links' }, |
|---|
| 24 | { name: 'insert' }, |
|---|
| 25 | { name: 'document', groups: [ 'mode' ] }, |
|---|
| 26 | '/', |
|---|
| 27 | { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] }, |
|---|
| 28 | { name: 'paragraph', groups: [ 'list', 'indent' ] }, |
|---|
| 29 | { name: 'styles' }, |
|---|
| 30 | { name: 'about' } |
|---|
| 31 | ], |
|---|
| 32 | removePlugins: 'font,iframe,pagebreak,flash,stylescombo,print,preview,save,smiley,pastetext,pastefromword', |
|---|
| 33 | uiColor: '#AADC6E' |
|---|
| 34 | }); |
|---|
| 35 | |
|---|
| 36 | $('#inline1').ckeditor({ |
|---|
| 37 | extraPlugins: 'simplebox,wsc,scayt', |
|---|
| 38 | scayt_autoStartup: false, |
|---|
| 39 | toolbarGroups: [ |
|---|
| 40 | { name: 'clipboard', groups: [ 'scayt','clipboard', 'undo' ] }, |
|---|
| 41 | { name: 'editing', groups: [ 'spellchecker' ] }, |
|---|
| 42 | { name: 'links' }, |
|---|
| 43 | { name: 'insert' }, |
|---|
| 44 | { name: 'document', groups: [ 'mode' ] }, |
|---|
| 45 | '/', |
|---|
| 46 | { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] }, |
|---|
| 47 | { name: 'paragraph', groups: [ 'list', 'indent' ] }, |
|---|
| 48 | { name: 'styles' }, |
|---|
| 49 | { name: 'about' } |
|---|
| 50 | ], |
|---|
| 51 | removePlugins: 'font,iframe,pagebreak,flash,stylescombo,print,preview,save,smiley,pastetext,pastefromword', |
|---|
| 52 | }); |
|---|
| 53 | |
|---|
| 54 | $('#editor2').ckeditor({ |
|---|
| 55 | extraPlugins: 'simplebox,wsc,scayt', |
|---|
| 56 | contentsCss: [ |
|---|
| 57 | '../contents.css', '../plugins/simplebox/samples/contents2.css' |
|---|
| 58 | ], |
|---|
| 59 | scayt_autoStartup: true, |
|---|
| 60 | height: 160, |
|---|
| 61 | toolbarGroups: [ |
|---|
| 62 | { name: 'clipboard', groups: [ 'scayt','clipboard', 'undo' ] }, |
|---|
| 63 | { name: 'editing', groups: [ 'spellchecker' ] }, |
|---|
| 64 | { name: 'links' }, |
|---|
| 65 | { name: 'insert' }, |
|---|
| 66 | { name: 'document', groups: [ 'mode' ] }, |
|---|
| 67 | '/', |
|---|
| 68 | { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] }, |
|---|
| 69 | { name: 'paragraph', groups: [ 'list', 'indent' ] }, |
|---|
| 70 | { name: 'styles' }, |
|---|
| 71 | { name: 'about' } |
|---|
| 72 | ], |
|---|
| 73 | removePlugins: 'font,iframe,pagebreak,flash,stylescombo,print,preview,save,smiley,pastetext,pastefromword', |
|---|
| 74 | uiColor: '#AADC6E' |
|---|
| 75 | }); |
|---|
| 76 | |
|---|
| 77 | $('#inline2').ckeditor({ |
|---|
| 78 | extraPlugins: 'simplebox,wsc,scayt', |
|---|
| 79 | scayt_autoStartup: true, |
|---|
| 80 | toolbarGroups: [ |
|---|
| 81 | { name: 'clipboard', groups: [ 'scayt','clipboard', 'undo' ] }, |
|---|
| 82 | { name: 'editing', groups: [ 'spellchecker' ] }, |
|---|
| 83 | { name: 'links' }, |
|---|
| 84 | { name: 'insert' }, |
|---|
| 85 | { name: 'document', groups: [ 'mode' ] }, |
|---|
| 86 | '/', |
|---|
| 87 | { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] }, |
|---|
| 88 | { name: 'paragraph', groups: [ 'list', 'indent' ] }, |
|---|
| 89 | { name: 'styles' }, |
|---|
| 90 | { name: 'about' } |
|---|
| 91 | ], |
|---|
| 92 | removePlugins: 'font,iframe,pagebreak,flash,stylescombo,print,preview,save,smiley,pastetext,pastefromword', |
|---|
| 93 | uiColor: '#FFF000' |
|---|
| 94 | }); |
|---|
| 95 | }); |
|---|
| 96 | </script> |
|---|
| 97 | <style> |
|---|
| 98 | textarea#editor2 { |
|---|
| 99 | margin-top:20px; |
|---|
| 100 | } |
|---|
| 101 | div#inline1 { |
|---|
| 102 | border: 1px solid grey; |
|---|
| 103 | background-color:#E0FEC5; |
|---|
| 104 | height:150px; |
|---|
| 105 | margin:20px 0; |
|---|
| 106 | } |
|---|
| 107 | div#inline2 { |
|---|
| 108 | border: 1px solid grey; |
|---|
| 109 | background-color:red; |
|---|
| 110 | height:150px; |
|---|
| 111 | } |
|---|
| 112 | </style> |
|---|
| 113 | <link href="./sample.css" rel="stylesheet"> |
|---|
| 114 | <link href="../contents.css" rel="stylesheet"> |
|---|
| 115 | <link href="../plugins/simplebox/samples/contents2.css" rel="stylesheet"> |
|---|
| 116 | </head> |
|---|
| 117 | <body> |
|---|
| 118 | <textarea id="editor1" cols="10" rows="10"> |
|---|
| 119 | <div class="simplebox align-left" style="width: 80%"> |
|---|
| 120 | <h3 class="simplebox-title">Simple Box Sample CKEditor Classic, SCAYT disabled (scayt_autoStartup: false)</h3> |
|---|
| 121 | <div class="simplebox-content"> |
|---|
| 122 | <p>Double clicking on simplebox handle successfully launches simplebox property popup.</p> |
|---|
| 123 | </div> |
|---|
| 124 | </div> |
|---|
| 125 | </textarea> |
|---|
| 126 | |
|---|
| 127 | <div id="inline1" cols="10" rows="10" contenteditable="true"> |
|---|
| 128 | <div class="simplebox align-left" style="width: 80%"> |
|---|
| 129 | <h3 class="simplebox-title">Simple Box Sample CKEditor Inline, SCAYT disabled (scayt_autoStartup: false)</h3> |
|---|
| 130 | <div class="simplebox-content"> |
|---|
| 131 | <p>Double clicking on simplebox handle successfully launches simplebox property popup.</p> |
|---|
| 132 | </div> |
|---|
| 133 | </div> |
|---|
| 134 | </div> |
|---|
| 135 | |
|---|
| 136 | <textarea id="editor2" cols="10" rows="10"> |
|---|
| 137 | <div class="simplebox align-left" style="width: 80%"> |
|---|
| 138 | <h3 class="simplebox-title">Simple Box Sample CKEditor Classic, SCAYT enabled (scayt_autoStartup: true)</h3> |
|---|
| 139 | <div class="simplebox-content"> |
|---|
| 140 | <p>Double clicking on simplebox handle successfully launches simplebox property popup.</p> |
|---|
| 141 | </div> |
|---|
| 142 | </div> |
|---|
| 143 | |
|---|
| 144 | |
|---|
| 145 | </textarea> |
|---|
| 146 | |
|---|
| 147 | <br /> <br /> |
|---|
| 148 | <div id="inline2" cols="10" rows="10" contenteditable="true" style="padding-top:20px;"> |
|---|
| 149 | <div class="simplebox align-left" style="width: 80%"> |
|---|
| 150 | <h3 class="simplebox-title">Simple Box Sample CKEditor Inline, SCAYT enabled (scayt_autoStartup: true)</h3> |
|---|
| 151 | <div class="simplebox-content"> |
|---|
| 152 | <p>Double clicking on simplebox handle fails to launch property popup.</p> |
|---|
| 153 | </div> |
|---|
| 154 | </div> |
|---|
| 155 | </div> |
|---|
| 156 | |
|---|
| 157 | </body> |
|---|
| 158 | </html> |
|---|