글 작성/편집 에디터 버그 보완 작업
This commit is contained in:
BIN
static/upload/img/5125c2beae99441da78e85dcec874f76.png
Normal file
BIN
static/upload/img/5125c2beae99441da78e85dcec874f76.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 58 KiB |
BIN
static/upload/img/df03bffe5c814409a441acbbac84d4b4.png
Normal file
BIN
static/upload/img/df03bffe5c814409a441acbbac84d4b4.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 58 KiB |
BIN
static/upload/img/e723bd8a9300493db4037427c9dcd858.png
Normal file
BIN
static/upload/img/e723bd8a9300493db4037427c9dcd858.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 926 B |
@@ -15,6 +15,8 @@
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/uikit/3.6.16/js/uikit.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/uikit/3.6.16/js/uikit-icons.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
||||
|
||||
{% block staticfiles %}{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
<div class="wixon__wrap">
|
||||
|
||||
@@ -1,7 +1,20 @@
|
||||
{% 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="/edit_post/{{ post.id }}" method="post" class="uk-form-stacked">
|
||||
<div class="uk-margin">
|
||||
@@ -36,7 +49,8 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="uk-margin">
|
||||
<a style="float: left;" href="{{ url_for('post', post_id=post.id) }}" class="uk-button uk-button-default">뒤로가기</a>
|
||||
<a style="float: left;" href="{{ url_for('post', post_id=post.id) }}"
|
||||
class="uk-button uk-button-default">뒤로가기</a>
|
||||
<button style="float: right;" type="submit" class="uk-button uk-button-primary">글 수정</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user