-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCKEditorTemplates.js
70 lines (68 loc) · 2.92 KB
/
CKEditorTemplates.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// Register a templates definition set named "default".
CKEDITOR.addTemplates ('default', {
// The name of sub folder which hold the shortcut preview images
imagesPath: CKEDITOR.getUrl (CKEDITOR.plugins.getPath ("templates") + "templates/images/"),
templates: [
{
title: "YouTube video",
description: 'YouTube video inside Bootstrap embed-responsive container.',
html:
'<div class="embed-responsive embed-responsive-16by9">' +
'<iframe allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="" src="https://www.youtube.com/embed/ABCDEFGH"></iframe>' +
'</div>'
},
{
title: 'Image thumbnail with lightbox',
description: 'Image thumbnail with the full image opens in the blueimp Gallery lightbox.',
html:
'<p>' +
'<a data-gallery="" href="/Portals/0/images/logo2.png" title="DNN Platform">' +
'<img class="img-thumbnail" alt="DNN" src="/dnnimagehandler.ashx?mode=file&file=/Portals/0/images/logo2.png&w=200" />' +
'</a>' +
'</p>'
},
{
title: 'Bootstrap blockquote',
description: 'Simple Bootstrap blockquote.',
html:
'<blockquote class="blockquote">' +
'<p>Lorem ipsum dolor sit amet.</p>' +
'</blockquote>'
},
{
title: 'Bootstrap blockquote with a footer',
description: 'Bootstrap blockquote with a footer.',
html:
'<blockquote class="blockquote">' +
'<p class="mb-0">Lorem ipsum dolor sit amet.</p>' +
'<footer class="blockquote-footer">' +
'Someone famous in' +
'<cite title="Source Title">' +
'Source Title' +
'</cite>' +
'</footer>' +
'</blockquote>'
},
{
title: 'Bootstrap table (responsive)',
description: 'Bootstrap table inside responsive div.',
html:
'<div class="table-responsive">' +
'<table class="table table-bordered table-striped table-hover">' +
'<thead>' +
'<tr>' +
'<th>Column 1</th>' +
'<th>Column 2</th>' +
'</tr>' +
'</thead>' +
'<tbody>' +
'<tr>' +
'<td>Data 1</td>' +
'<td>Data 2</td>' +
'</tr>' +
'</tbody>' +
'</table>' +
'</div>'
}
]
});