5 <meta charset="utf-8" />
6 <title>Bootstrap, from Twitter</title>
7 <meta name="viewport" content="width=device-width, initial-scale=1.0" />
8 <meta name="description" content="" />
9 <meta name="author" content="" />
11 <link data-require="bootstrap-css" data-semver="3.3.1" rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" />
12 <link data-require="bootstrap@*" data-semver="3.3.1" rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" />
17 @media (max-width: 979px) {
19 /* Remove any padding from the body */
25 <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
27 <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
29 <!-- Le fav and touch icons -->
30 <link rel="shortcut icon" href="images/favicon.ico" />
31 <link rel="apple-touch-icon" href="images/apple-touch-icon.png" />
32 <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png" />
33 <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png" />
35 ================================================== -->
36 <script data-require="jquery" data-semver="2.1.3" src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
37 <script data-require="bootstrap" data-semver="3.3.1" src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
38 <script src="http://albatrossdigital.github.io/ckeditor-sandbox/ckeditor.js"></script>
42 <div class="container">
43 <h1>CKEditor Bootstrap Widgets</h1>
45 Give your content authors the ability to add responsive layout elements to their pages. CKEditor widgets are provided for common
46 <a href="http://getbootstrap.com/">Bootstrap</a> layouts:
49 <li>Left sidebar image</li>
50 <li>Right sidebar image</li>
52 <li>Three columns</li>
55 <p>Each widget can have its own button, or you can use the Widget Template Menu plugin to create a dropdown menu of templates.</p>
56 <p><strong>Watch a demo: <a href="http://albatrossdigital.com/node/41">http://albatrossdigital.com/node/41</a></strong></p>
59 <p>Install the plugin using the standard <a href="http://docs.ckeditor.com/#!/guide/dev_plugins" target="_blank">CKEditor plugin installation instructions</a>.
60 We recommend manually building your editor on ckeditor.com, or using <a href="https://github.com/albatrossdigital/ckeditor-sandbox" target="_blank">our base editor build</a>, which will include everything you need.</p>
61 <!--<pre><script src="http://albatrossdigital.github.io/ckeditor-sandbox/ckeditor.js"></script></pre>-->
62 <p>Once you have added the plugin, you can use our Widget Template Menu plugin or the standard Toolbar Groups. For each, you must set extraPlugins and allowedContent.</p>
64 <li><a href="#widgetTemplateMenu">Widget Template Menu</a></li>
65 <li><a href="#toolbarGroups">Toolbar Groups</a></li>
66 <!--<li><a href="#customToolbar">Custom Toolbar</a></li>-->
69 <br/><a name="widgetTemplateMenu"></a><h3>Widget Template Menu</h3>
72 CKEDITOR.replace( 'editor1', {
73 plugins: 'wysiwygarea,toolbar,basicstyles,menubutton,link,sourcearea,image2,widget',
74 extraPlugins: 'widgetbootstrap,widgettemplatemenu',
77 [ 'Source', '-', 'NewPage', 'Preview', '-', 'Templates' ],
78 [ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo' ],
80 [ 'WidgetTemplateMenu' ]
82 allowedContent: 'p a div span h2 h3 h4 h5 h6 section article iframe object embed strong b i em cite pre blockquote small,' +
83 'sub sup code ul ol li dl dt dd table thead tbody th tr td img caption mediawrapper br[href,src,target,width,height,colspan,' +
84 'span,alt,name,title,class,id,data-options]{text-align,float,margin}(*);'
88 <textarea id="editor1" cols="10" rows="10">
89 <div class="row two-col-right"><div class="col-md-9 col-main"><p>Content</p></div><div class="col-md-3 col-sidebar"><p><img alt="" src="http://placehold.it/300x250&text=Image" /></p></div></div>
95 CKEDITOR.replace( 'editor1', {
96 plugins: 'wysiwygarea,toolbar,basicstyles,menubutton,link,sourcearea,image2,widget',
97 extraPlugins: 'widgetbootstrap,widgettemplatemenu',
100 [ 'Source', '-', 'NewPage', 'Preview', '-', 'Templates' ],
101 [ 'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', '-', 'Undo', 'Redo' ],
103 [ 'WidgetTemplateMenu' ]
105 allowedContent: 'p a div span h2 h3 h4 h5 h6 section article iframe object embed strong b i em cite pre blockquote small,' +
106 'sub sup code ul ol li dl dt dd table thead tbody th tr td img caption mediawrapper br[href,src,target,width,height,colspan,' +
107 'span,alt,name,title,class,id,data-options]{text-align,float,margin}(*);'
113 <br/><a name="toolbarGroups"></a><h3>Toolbar Groups</h3>
115 CKEDITOR.replace( 'editor2', {
116 plugins: 'wysiwygarea,toolbar,basicstyles,menubutton,link,sourcearea',
117 extraPlugins: 'image2,widget,widgetbootstrap',
120 { name: 'clipboard', groups: [ 'clipboard', 'undo', 'source' ] },
121 { name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] },
122 { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
123 { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align' ] },
128 allowedContent: 'p a div span h2 h3 h4 h5 h6 section article iframe object embed strong b i em cite pre blockquote small,' +
129 'sub sup code ul ol li dl dt dd table thead tbody th tr td img caption mediawrapper br[href,src,target,width,height,colspan,' +
130 'span,alt,name,title,class,id,data-options]{text-align,float,margin}(*);'
134 <textarea id="editor2" cols="10" rows="10">
135 <div class="row two-col-right"><div class="col-md-9 col-main"><p>Content</p></div><div class="col-md-3 col-sidebar"><p><img alt="" src="http://placehold.it/300x250&text=Image" /></p></div></div>
141 CKEDITOR.replace( 'editor2', {
142 plugins: 'wysiwygarea,toolbar,basicstyles,menubutton,link,sourcearea',
143 extraPlugins: 'image2,widget,widgetbootstrap',
146 // On the basic preset, clipboard and undo is handled by keyboard.
147 // Uncomment the following line to enable them on the toolbar as well.
148 { name: 'clipboard', groups: [ 'clipboard', 'undo', 'source' ] },
149 { name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] },
150 { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
151 { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align' ] },
156 allowedContent: 'p a div span h2 h3 h4 h5 h6 section article iframe object embed strong b i em cite pre blockquote small,' +
157 'sub sup code ul ol li dl dt dd table thead tbody th tr td img caption mediawrapper br[href,src,target,width,height,colspan,' +
158 'span,alt,name,title,class,id,data-options]{text-align,float,margin}(*);'
163 <br/><br/><h2>About the Creators</h2>
164 <div class="row two-col-left">
165 <div class="col-md-2 col-sidebar">
166 <p><a href="http://albatrossdigital.com" title="Albatross Digital" target="_blank"><img alt="Albatross Digital" src="http://albatrossdigital.com/images/logo.png" /></a></p>
169 <div class="col-md-10 col-main">
170 <p><a href="http://albatrossdigital.com" target="_blank">Albatross Digital</a> is a small group that builds websites, designs identities and solve problems.
171 We have spent a lot of time and resources thinking about better content authoring experiences and workflows. If you're interested in learning
172 more, <a href="http://albatrossdigital.com/projects">have a look at our work</a> or send us a note at <a href="mailto:hello@albatrossdigital.com">hello@albatrossdigital.com</a>.