bootstrap 4 beta 2
Bootstrap 4 beta 2
This commit is contained in:
@@ -0,0 +1,87 @@
|
||||
/**
|
||||
* @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
|
||||
* For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
|
||||
// Register a templates definition set named "default".
|
||||
CKEDITOR.addTemplates( 'default', {
|
||||
// The name of sub folder which hold the shortcut preview images of the
|
||||
// templates.
|
||||
imagesPath: CKEDITOR.getUrl( CKEDITOR.plugins.getPath( 'templates' ) + 'templates/images/' ),
|
||||
|
||||
// The templates definitions.
|
||||
templates: [ {
|
||||
title: 'Image and Title',
|
||||
image: 'template1.gif',
|
||||
description: 'One main image with a title and text that surround the image.',
|
||||
html: '<h3>' +
|
||||
// Use src=" " so image is not filtered out by the editor as incorrect (src is required).
|
||||
'<img src=" " alt="" style="margin-right: 10px" height="100" width="100" align="left" />' +
|
||||
'Type the title here' +
|
||||
'</h3>' +
|
||||
'<p>' +
|
||||
'Type the text here' +
|
||||
'</p>'
|
||||
},
|
||||
{
|
||||
title: 'Strange Template',
|
||||
image: 'template2.gif',
|
||||
description: 'A template that defines two columns, each one with a title, and some text.',
|
||||
html: '<table cellspacing="0" cellpadding="0" style="width:100%" border="0">' +
|
||||
'<tr>' +
|
||||
'<td style="width:50%">' +
|
||||
'<h3>Title 1</h3>' +
|
||||
'</td>' +
|
||||
'<td></td>' +
|
||||
'<td style="width:50%">' +
|
||||
'<h3>Title 2</h3>' +
|
||||
'</td>' +
|
||||
'</tr>' +
|
||||
'<tr>' +
|
||||
'<td>' +
|
||||
'Text 1' +
|
||||
'</td>' +
|
||||
'<td></td>' +
|
||||
'<td>' +
|
||||
'Text 2' +
|
||||
'</td>' +
|
||||
'</tr>' +
|
||||
'</table>' +
|
||||
'<p>' +
|
||||
'More text goes here.' +
|
||||
'</p>'
|
||||
},
|
||||
{
|
||||
title: 'Text and Table',
|
||||
image: 'template3.gif',
|
||||
description: 'A title with some text and a table.',
|
||||
html: '<div style="width: 80%">' +
|
||||
'<h3>' +
|
||||
'Title goes here' +
|
||||
'</h3>' +
|
||||
'<table style="width:150px;float: right" cellspacing="0" cellpadding="0" border="1">' +
|
||||
'<caption style="border:solid 1px black">' +
|
||||
'<strong>Table title</strong>' +
|
||||
'</caption>' +
|
||||
'<tr>' +
|
||||
'<td> </td>' +
|
||||
'<td> </td>' +
|
||||
'<td> </td>' +
|
||||
'</tr>' +
|
||||
'<tr>' +
|
||||
'<td> </td>' +
|
||||
'<td> </td>' +
|
||||
'<td> </td>' +
|
||||
'</tr>' +
|
||||
'<tr>' +
|
||||
'<td> </td>' +
|
||||
'<td> </td>' +
|
||||
'<td> </td>' +
|
||||
'</tr>' +
|
||||
'</table>' +
|
||||
'<p>' +
|
||||
'Type the text here' +
|
||||
'</p>' +
|
||||
'</div>'
|
||||
} ]
|
||||
} );
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 539 B |
Binary file not shown.
|
After Width: | Height: | Size: 497 B |
Binary file not shown.
|
After Width: | Height: | Size: 557 B |
Reference in New Issue
Block a user