글 작성/편집 에디터 버그 보완 작업

This commit is contained in:
javamon117
2023-08-21 18:42:51 +09:00
parent bb044c4a39
commit 95f617dca1
6 changed files with 34 additions and 7 deletions

View File

@@ -1,7 +1,19 @@
{% extends 'base.html' %}
{% block staticfiles %}
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<!-- Bootstrap JS -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
{% endblock %}
{% block content %}
<div class="uk-container uk-margin-top">
<style>
label, .uk-button {
font-size: 16px !important;
}
</style>
<div class="uk-container uk-margin-top" style="margin-bottom: 30px">
<h1 class="uk-text-center"><span>포스트 작성</span></h1>
<form action="/write" method="post" class="uk-form-stacked">
<div class="uk-margin">
@@ -41,8 +53,8 @@
</form>
</div>
<script>
$(document).ready(function () {
$('.summernote').summernote({
window.onload = function () {
$('#contents').summernote({
height: 300,
callbacks: {
onImageUpload: function (files) {
@@ -67,7 +79,6 @@
}
}
});
});
}
</script>
{% endblock %}