Skip to content

Commit 28b9478

Browse files
committed
cleanup
1 parent 1b08067 commit 28b9478

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

martor/static/martor/css/martor.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,9 @@ form .martor-preview {
234234
border: none!important;
235235
}
236236
/* live preview */
237-
.enable-living form .martor-preview {
237+
form .enable-living .martor-preview {
238238
display: block !important;
239239
}
240-
.enable-living .tab-martor-menu a.item {
240+
form .enable-living .tab-martor-menu a.item {
241241
display: none !important;
242242
}

martor/static/martor/css/martor.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.

martor_demo/martor_demo/settings.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@
2525
# SECURITY WARNING: don't run with debug turned on in production!
2626
DEBUG = True
2727
ALLOWED_HOSTS = ['*']
28+
MARTOR_ENABLE_CONFIGS = {
29+
'imgur': 'true', # to enable/disable imgur/custom uploader.
30+
'mention': 'false', # to enable/disable mention
31+
'jquery': 'true', # to include/revoke jquery (require for admin default django)
32+
'living': 'true', # to enable/disable live updates in preview
33+
}
2834

2935
# Application definition
3036
INSTALLED_APPS = [

0 commit comments

Comments
 (0)