forked from isotoma/wagtailtinymce
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Django setting option to customize the button bar with a default …
…set in place.
- Loading branch information
Showing
5 changed files
with
100 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,62 @@ | ||
/bin | ||
/include | ||
/lib | ||
/lib64 | ||
/local | ||
/.tx | ||
/translations | ||
/media | ||
|
||
# Python bytecode: | ||
*.py[co] | ||
|
||
# Packaging files: | ||
*.egg* | ||
|
||
# Sphinx docs: | ||
build | ||
|
||
# SQLite3 database files: | ||
*.db | ||
|
||
# Logs: | ||
*.log | ||
|
||
# Eclipse | ||
.project | ||
|
||
# Linux Editors | ||
*~ | ||
\#*\# | ||
/.emacs.desktop | ||
/.emacs.desktop.lock | ||
.elc | ||
auto-save-list | ||
tramp | ||
.\#* | ||
*.swp | ||
*.swo | ||
|
||
# Mac | ||
.DS_Store | ||
._* | ||
|
||
# Windows | ||
Thumbs.db | ||
Desktop.ini | ||
|
||
# Dev tools | ||
.idea | ||
.vagrant | ||
|
||
# Ignore local configurations | ||
config/settings/local.py | ||
db.sqlite3 | ||
|
||
# Node modules | ||
node_modules/ | ||
|
||
# Bower components | ||
bower_components/ | ||
|
||
# Coverage | ||
htmlcov/ | ||
.coverage | ||
|
||
# dumpdata file | ||
db.json | ||
/static | ||
/config/settings/user.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from django.conf import settings | ||
|
||
|
||
def get_default_buttons(): | ||
""" | ||
Return set of buttons for the Django project, or use | ||
the default. | ||
""" | ||
|
||
default_button_list = [ | ||
['undo', 'redo'], | ||
['styleselect'], | ||
['bold', 'italic'], | ||
['bullist', 'numlist', 'outdent', 'indent'], | ||
['table'], | ||
['link', 'unlink'], | ||
['wagtaildoclink', 'wagtailimage', 'wagtailembed'], | ||
['pastetext', 'fullscreen'], | ||
] | ||
|
||
return getattr(settings, 'WAGTAILTINYMCE_BUTTON_LIST', default_button_list) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters