Skip to content

Commit aa05f86

Browse files
committed
Fix post preview when insert image
1 parent 0d23c92 commit aa05f86

File tree

10 files changed

+17
-12
lines changed

10 files changed

+17
-12
lines changed

.gitignore

100644100755
File mode changed.

cache/installedVersion.json

100644100755
File mode changed.

system/admin/views/add-page.html.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,21 @@
1616
<form method="POST">
1717
Title <span class="required">*</span>
1818
<br>
19-
<input type="text" class="text <?php if (isset($postTitle)) {if (empty($postTitle)) {echo 'error';}} ?>" name="title" value="<?php if (isset($postTitle)) {echo $postTitle;} ?>"/>
20-
<br><br>
21-
Url (optional)<br><input type="text" class="text" name="url" value="<?php if (isset($postUrl)) {echo $postUrl;} ?>"/>
19+
<input type="text" class="text form-control <?php if (isset($postTitle)) {if (empty($postTitle)) {echo 'error';}} ?>" name="title" value="<?php if (isset($postTitle)) {echo $postTitle;} ?>"/>
20+
<br>
21+
Url (optional)
2222
<br>
23-
<span class="help">If the url leave empty we will use the page title.</span>
23+
<span class="help">
24+
<input type="text" class="text form-control" name="url" value="<?php if (isset($postUrl)) {echo $postUrl;} ?>"/>
25+
If the url leave empty we will use the page title.
26+
</span>
2427
<br><br>
2528
Meta Description (optional)
2629
<br>
27-
<textarea name="description" rows="3" cols="20"><?php if (isset($p->description)) {echo $p->description;} ?></textarea>
30+
<textarea style="form-control" name="description" rows="3" cols="20"><?php if (isset($p->description)) {echo $p->description;} ?></textarea>
2831
<br><br>
2932
<div id="wmd-button-bar" class="wmd-button-bar"></div>
30-
<textarea id="wmd-input" class="wmd-input <?php if (isset($postContent)) {if (empty($postContent)) {echo 'error';}} ?>" name="content" cols="20" rows="10"><?php if (isset($postContent)) {echo $postContent;} ?></textarea>
33+
<textarea id="wmd-input" class="wmd-input form-control<?php if (isset($postContent)) {if (empty($postContent)) {echo 'error';}} ?>" name="content" cols="20" rows="10"><?php if (isset($postContent)) {echo $postContent;} ?></textarea>
3134
<br/>
3235
<input type="hidden" name="csrf_token" value="<?php echo get_csrf() ?>">
3336
<?php if ($type == 'is_page') :?>

system/admin/views/categories.html.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@
3131
<?php endforeach;?>
3232
</tbody>
3333
</table>
34-
</div>
34+
</div>

system/htmly.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -758,11 +758,8 @@
758758

759759
// Show the add category
760760
get('/add/category', function () {
761-
762761
if (login()) {
763-
764762
config('views.root', 'system/admin/views');
765-
766763
render('add-page', array(
767764
'title' => 'Add page - ' . blog_title(),
768765
'description' => strip_tags(blog_description()),

system/resources/css/dashboard.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ body {
77
padding-top: 50px;
88
}
99

10-
1110
/*
1211
* Global add-ons
1312
*/
@@ -103,3 +102,9 @@ body {
103102
display: inline-block;
104103
border-radius: 50%;
105104
}
105+
106+
/*Admin Part Addition*/
107+
108+
.wmd-preview img {
109+
max-width: 100%;
110+
}

system/resources/css/select2.min.css

100644100755
File mode changed.

system/resources/images/logo-small-white.png

100644100755
File mode changed.

system/resources/js/select2.full.min.js

100644100755
File mode changed.

themes/bootstrap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit c11343263e8fea04c3e72accd1a0f17024fa2065
1+
Subproject commit 8cd40967b8e2b61e44db4c73f665dc6be5d5bf42

0 commit comments

Comments
 (0)