Skip to content

Commit 91d3dc3

Browse files
authored
Merge pull request #142 from agusmakmun/development
development
2 parents b1d929e + d046a34 commit 91d3dc3

File tree

12 files changed

+42
-34
lines changed

12 files changed

+42
-34
lines changed

.travis.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ matrix:
4242
- python: 3.6
4343
env: DJANGO="==2.2.*"
4444
- python: 3.6
45-
env: DJANGO=">=3.0a1,<3.1"
45+
env: DJANGO="==3.0.*"
46+
- python: 3.6
47+
env: DJANGO="==3.1.*"
4648

4749
- python: 3.7
4850
env: DJANGO="==2.0.*"
@@ -51,11 +53,13 @@ matrix:
5153
- python: 3.7
5254
env: DJANGO="==2.2.*"
5355
- python: 3.7
54-
env: DJANGO=">=3.0a1,<3.1"
56+
env: DJANGO="==3.0.*"
57+
- python: 3.7
58+
env: DJANGO="==3.1.*"
5559

5660
- os: osx
5761
language: generic
58-
env: DJANGO="==1.10.*"
62+
env: DJANGO="==3.1.*"
5963

6064
# Perform the manual steps on OSX to install Python3 and activate venv:
6165
# Since Python versions have been tested on Linux and it is only a matter of

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@
4040

4141
Martor is available directly from [PyPI][2]:
4242

43-
1. Installing the package.
43+
**1.** Installing the package.
4444

4545
```
4646
$ pip install martor
4747
```
4848

4949

50-
2. Don't forget to add `'martor'` to your `'INSTALLED_APPS'` setting _(without migrations)_.
50+
**2.** Don't forget to add `'martor'` to your `'INSTALLED_APPS'` setting _(without migrations)_.
5151

5252
```
5353
# settings.py
@@ -58,7 +58,7 @@ INSTALLED_APPS = [
5858
```
5959

6060

61-
3. Add url pattern to your `urls.py.`
61+
**3.** Add url pattern to your `urls.py.`
6262

6363
```
6464
# urls.py
@@ -76,15 +76,14 @@ urlpatterns = [
7676
```
7777

7878

79-
4. Collect martor's static files in your `STATIC_ROOT` folder.
79+
**4.** Collect martor's static files in your `STATIC_ROOT` folder.
8080

8181
```
8282
./manage.py collectstatic
8383
```
8484

8585

86-
Setting Configurations `settings.py`
87-
---------------------------------------
86+
### Setting Configurations `settings.py`
8887

8988
Please register your application at https://api.imgur.com/oauth2/addclient
9089
to get `IMGUR_CLIENT_ID` and `IMGUR_API_KEY`.

martor/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
22

3-
__VERSION__ = '1.5.6'
3+
__VERSION__ = '1.5.8'
44
__AUTHOR__ = 'Agus Makmun (Summon Agus)'
55
__AUTHOR_EMAIL__ = '[email protected]'

martor/static/martor/css/martor-admin.min.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

martor/static/martor/css/martor.bootstrap.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ div.martor-preview-stale {
120120
position: absolute;
121121
bottom: -8px;
122122
right: 8px;
123+
z-index: 100;
123124
}
124125
.no-border {
125126
border: none!important;

martor/static/martor/css/martor.bootstrap.min.css

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

martor/static/martor/css/martor.semantic.min.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

martor/static/martor/js/martor.bootstrap.js

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* Name : Martor v1.5.6
2+
* Name : Martor v1.5.8
33
* Created by : Agus Makmun (Summon Agus)
4-
* Release date : 16-Sep-2020
4+
* Release date : 05-Oct-2020
55
* License : GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
66
* Repository : https://github.com/agusmakmun/django-markdown-editor
77
**/
@@ -145,7 +145,18 @@
145145

146146
// update the preview if this menu is clicked
147147
var currentTab = $('.tab-pane#nav-preview-'+field_name);
148+
var editorTabButton = $('.nav-link#nav-editor-tab-'+field_name);
148149
var previewTabButton = $('.nav-link#nav-preview-tab-'+field_name);
150+
var toolbarButtons = $(this).closest('.tab-martor-menu').find('.martor-toolbar')
151+
152+
editorTabButton.click(function(){
153+
// show the `.martor-toolbar` for this current editor if under preview.
154+
$(this).closest('.tab-martor-menu').find('.martor-toolbar').show();
155+
});
156+
previewTabButton.click(function() {
157+
$(this).closest('.tab-martor-menu').find('.martor-toolbar').hide();
158+
});
159+
149160
var refreshPreview = function() {
150161
var value = textareaId.val();
151162
var form = new FormData();
@@ -194,12 +205,6 @@
194205
editor.on('change', refreshPreview);
195206
}
196207

197-
var editorTabButton = $('.nav-link#nav-preview-tab-'+field_name);
198-
editorTabButton.click(function(){
199-
// show the `.martor-toolbar` for this current editor if under preview.
200-
$(this).closest('.tab-martor-menu').find('.martor-toolbar').show();
201-
});
202-
203208
if (editorConfig.spellcheck == 'true') {
204209
try {
205210
enable_spellcheck(editorId);

martor/static/martor/js/martor.bootstrap.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

martor/static/martor/js/martor.semantic.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* Name : Martor v1.5.6
2+
* Name : Martor v1.5.8
33
* Created by : Agus Makmun (Summon Agus)
4-
* Release date : 16-Sep-2020
4+
* Release date : 05-Oct-2020
55
* License : GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007
66
* Repository : https://github.com/agusmakmun/django-markdown-editor
77
**/

0 commit comments

Comments
 (0)