mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-04 15:24:23 +01:00
49 lines
1.6 KiB
HTML
49 lines
1.6 KiB
HTML
<!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>summernote</title>
|
|
<!-- include jquery -->
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.js"></script>
|
|
|
|
<!-- include libs stylesheets -->
|
|
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.css" />
|
|
<script src="//netdna.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.js"></script>
|
|
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.css" />
|
|
|
|
<!-- include summernote -->
|
|
<link rel="stylesheet" href="../dist/summernote.css">
|
|
<script type="text/javascript" src="../dist/summernote.js"></script>
|
|
|
|
<script src="https://www.google.com/jsapi" type="text/javascript"></script>
|
|
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
$('.summernote').summernote({
|
|
height: 200,
|
|
hint: {
|
|
match: /#(\w{2,})$/,
|
|
search: function(keyword, callback) {
|
|
$.ajax({
|
|
url: 'https://api.github.com/search/repositories?q=' + keyword + '&order=asc'
|
|
}).then(function (data) {
|
|
callback(data.items);
|
|
});
|
|
},
|
|
content: function(item) {
|
|
return '[' + item.full_name + '] ' + item.description;
|
|
},
|
|
template: function(item) {
|
|
return '[<strong>' + item.full_name + '</strong>] ' + item.description;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<textarea class="summernote">type #su</textarea>
|
|
</body>
|
|
</html>
|