ax3-redactor 2.0.0

Creator: codyrutscher

Last updated:

Add to Cart

Description:

ax3redactor 2.0.0

AX3 Redactor
This app is part of the AX3 technology developed by Axiacore.
It will allow to use redactor inside the django admin interface.
Quick start

Add "redactor" to your INSTALLED_APPS setting like this:

INSTALLED_APPS = [
...
'redactor',
]


Include the redactor URLconf in your project urls.py like this:

path('', include('redactor.urls')),



Run python manage.py migrate to create the redactor models.


Copy this redactor library files into a static folder in your proyect:


vendor/redactor/redactor.min.css
vendor/redactor/redactor.min.js
vendor/redactor/plugins/imagemanager.min.js
vendor/redactor/plugins/video.min.js
vendor/redactor/plugins/widget.min.js


Add to the admin.py the redactor support for a given model:

from django.contrib import admin

from redactor.mixins import RedactorMixin

from .models import Post


@admin.register(Post)
class PostAdmin(RedactorMixin, admin.ModelAdmin):
...

redactor_fields = ['content']

...

content is a TextField attribute at the Post model.
You can use multiple fields.
Releasing a new version
Make sure you have an API Token for PyPI: https://pypi.org/help/#apitoken
Make sure you increase the version number and create a git tag:
$ python3 -m pip install --user --upgrade setuptools wheel twine
$ ./release.sh

Made by Axiacore.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.