forked from summernote/summernote.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
153 lines (147 loc) · 4.84 KB
/
index.html
File metadata and controls
153 lines (147 loc) · 4.84 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
---
layout: page
bodyClass: page index
---
<div class="index-main-background"></div>
<div class="container">
<h1 class="text-center index-title">
<span class="img-index-title"></span>
<span class="img-index-title-mobile">Super Simple WYSIWYG<br>Editor on Bootstrap</span>
<a href="{{ site.repository }}/releases/download/v{{ site.version }}/summernote-{{ site.version }}-dist.zip" class="index-download">
<span class="img-index-download"></span>
</a>
</h1>
</div>
<div class="page-container index-section-1">
<div id="summernote"><p><br></p></div>
<div class="placeholder">
hi,<br>
we are summernote.<br>
please, write text here!<br>
super simple WYSIWYG editor on Bootstrap
</div>
<div class="row card-list">
<div class="card-arrow"></div>
<div class="card-list-inner">
<div class="card-item">
<a href="/getting-started/#installation">
<span class="img-index-install"></span>
<h3 class="card-title">Easy to Install</h3>
<p class="card-body">Simply download and attach your js, css with bootstrap. </p>
</a>
</div>
<div class="card-item">
<a href="/deep-dive/#customization">
<span class="img-index-customizing"></span>
<h3 class="card-title">Customization</h3>
<p class="card-body">Customize by Initializing various options and modules.<br></p>
</a>
</div>
<div class="card-item">
<a href="/examples">
<span class="img-index-shortcuts"></span>
<h3 class="card-title">Examples</h3>
<p class="card-body">See all useful features of summernote in action.</p>
</a>
</div>
<div class="card-item">
<a href="{{ site.repository }}">
<span class="img-index-opensource"></span>
<h3 class="card-title">Open Source</h3>
<p class="card-body">Summernote is licensed under MIT and maintained by the community.</p>
</a>
</div>
<div class="card-item">
<a href="/getting-started/#integration">
<span class="img-index-backend"></span>
<h3 class="card-title">Integration</h3>
<p class="card-body">Integrate it with any back-end. 3rd parties available in django, rails, angular.</p>
</a>
</div>
</div>
</div>
</div>
<div class="index-section-2">
<div class="page-container">
<div class="row">
<div class="col-sm-5 summary-section">
<h3>Features</h3>
<ul style="list-style:none;padding:0;">
<li>Supports Bootstrap 3.x.x to 5.x.x</li>
<li>Lightweight (js+css: 100Kb)</li>
<li>Smart User Interaction</li>
<li>Works in all Major Browsers:
<ul style="list-style:none;padding:0 10px 0 0;">
<li>Safari, Chrome, Firefox, Opera, Edge and Internet Explorer 9+</li>
</ul>
</li>
<li>Works in all Major Operating Systems:
<ul style="list-style:none;padding:0 10px 0 0;">
<li>Windows, MacOS, Linux</li>
</ul>
</li>
</ul>
<h3>Donate</h3>
<div class="row">
<div class="col-sm-12" >
<div>
<a href="https://opencollective.com/summernote#backers" target="_blank"><img src="https://opencollective.com/summernote/backers.svg?width=890"></a>
</div>
</div>
</div>
<h3>Ad</h3>
<div class="row">
<div class="col-sm-12 ad-section">
{% include ad-main.html %}
</div>
</div>
</div>
<div class="col-sm-7 twitter-list">
<h3 class="twitter-title">Much appreciate to all contributors! Together and further...</h3>
<a href="https://github.com/summernote/summernote/graphs/contributors">Contributors</a>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(function() {
// index page card list
if ($('.card-list').length) {
var $cardArrow = $('.card-arrow');
var $cardListInner = $('.card-list-inner');
$cardListInner.scroll(function () {
$cardArrow.addClass('disappear');
if ($cardListInner.scrollLeft() < 20) {
$cardArrow.removeClass('disappear');
}
});
}
// main summernote with custom placeholder
var $placeholder = $('.placeholder');
$('#summernote').summernote({
height: 300,
codemirror: {
mode: 'text/html',
htmlMode: true,
lineNumbers: true,
theme: 'monokai'
},
callbacks: {
onInit: function() {
$placeholder.show();
},
onFocus: function() {
$placeholder.hide();
},
onBlur: function() {
var $self = $(this);
setTimeout(function() {
if ($self.summernote('isEmpty') && !$self.summernote('codeview.isActivated')) {
$placeholder.show();
}
}, 300);
}
}
});
});
</script>