summernote
Version:
Super simple WYSIWYG editor
49 lines (45 loc) • 1.58 kB
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>Summernote - Bootstrap 3</title>
<!-- include jQuery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.js"></script>
<!-- include Bootstrap -->
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.css" />
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.js"></script>
<!-- initialize Summernote -->
<script type="text/javascript">
$(document).ready(function() {
$(".summernote").summernote({
height: 400,
tabsize: 2,
followingToolbar: true
});
});
</script>
</head>
<body>
<div class="container">
<h1>Summernote with Bootstrap 3</h1>
<p>
<span class="label label-primary">jQuery v3.5.1</span>
<span class="label label-info">Bootstrap v3.4.1</span>
</p>
<div class="summernote"></div>
<div class="panel panel-default">
<div class="panel-body">
<h5>Other styles</h5>
<% _.forEach(htmlWebpackPlugin.options.styles, function(style) { %>
<a href="summernote-<%- style.id %>.html" class="btn btn-sm btn-default">
<%- style.name %>
</a>
<% }); %>
<hr>
<p><a href="/examples.html">Visit examples page ⮕</a></p>
</div>
</div>
</div>
</body>
</html>