forked from summernote/summernote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwith-google-font.html
39 lines (34 loc) · 1.29 KB
/
with-google-font.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>With Google Fonts</title>
<!-- include jquery -->
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js"></script>
<!-- include libraries BS -->
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.css" />
<script src="//cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.5/umd/popper.js"></script>
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.js"></script>
<!-- include summernote -->
<script type="text/javascript" src="/summernote-bs4.js"></script>
<!-- include Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Coming+Soon" rel="stylesheet" />
<link rel="stylesheet" href="example.css">
<script type="text/javascript">
$(function() {
$('.summernote').summernote({
height: 200,
fontNames : ['Coming Soon'],
fontNamesIgnoreCheck: ['Coming Soon']
});
});
</script>
</head>
<body>
<div class="container">
<h1>Summernote with Google Fonts</h1>
<textarea name="text" class="summernote"><p style="font-family: 'Coming Soon'">Coming Soon!</p></textarea>
</div>
</body>
</html>