Skip to content

Commit 75f7de0

Browse files
committed
0.3: update editor
1 parent 3b75825 commit 75f7de0

File tree

6 files changed

+26
-407
lines changed

6 files changed

+26
-407
lines changed

admin.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22
<div class="container">
33
<div class="row">
44
<!-- the editor -->
5-
<div class="col-lg-8 col-lg-offset-2">
5+
<div class="col-lg-12">
66
<form name="articleForm" role="form" ng-submit="updateArticle(article.thread_id)">
77
<div class="form-group title-group">
88
<input type="text" ng-model="article.title" class="form-control" placeholder="文章标题" required>
99
</div>
10-
<div class="editor-wrapper">
11-
<textarea editor ng-model="article.content"></textarea>
10+
<div id="core-editor" class="editor-wrapper clearfix">
11+
<editor-ninja ng-model="article.content"></editor-ninja>
1212
<button class="submit btn" type="submit">写好了</button>
1313
<a class="remove btn btn-danger" ng-show="article.thread_id" ng-click="removeArticle(article.thread_id)" ng-cloak>删除这篇文章</a>
1414
</div>
1515
</form>
1616
</div>
1717
<!-- add-on directives -->
18-
<div class="col-lg-8 col-lg-offset-2">
18+
<div class="col-lg-12">
1919
<div id="add-ons" class="add-ons clearfix">
2020
<!-- <div meta-share ng-model="article.meta.share"></div> -->
2121
<div meta-background ng-model="article.meta.background"></div>

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "chill",
3-
"version": "0.2.0",
3+
"version": "0.3.0",
44
"homepage": "https://github.com/airpub/chill",
55
"authors": [
66
"Guo Yu <[email protected]>"

css/chill.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

less/admin.less

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
display: block;
2929
text-align: center;
3030
font-weight: bold;
31-
margin: -25px 0 10px;
31+
margin: 20px 0 10px;
3232
border: 2px solid #ddd;
3333
background-color: #fff;
3434
&:hover {
@@ -40,7 +40,6 @@
4040
box-shadow: none;
4141
}
4242
@media @mobile {
43-
margin-top: 0px;
4443
width: 100%;
4544
}
4645
}
@@ -49,6 +48,10 @@
4948
display: block;
5049
font-size: 12px;
5150
float: left;
51+
cursor: pointer;
52+
@media @mobile {
53+
width: 100%;
54+
}
5255
}
5356
}
5457

less/chill.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
@import './admin.less';
1616
@import './error.less';
1717

18-
// editor
18+
// rewrites editor style
1919
@import './editor.less';
2020

2121
// module styles

0 commit comments

Comments
 (0)