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