This commit is contained in:
adi- 2016-05-14 12:18:00 +02:00
parent 7b012db5a5
commit b3040c6242
2 changed files with 9 additions and 1 deletions

View file

@ -270,6 +270,10 @@ $('.markdownx').on('markdownx.update', function(e, response) {
});
```
## Custom image insertion tags
Markdown uses `![]()` syntax to insert uploaded image file. This generates very simple html `<image>` tag. When you want to have more control and use your own html tags just create custom `form_valid()` function in `ImageUploadView` class (`views.py`).
# Dependencies
@ -280,6 +284,10 @@ $('.markdownx').on('markdownx.update', function(e, response) {
# Changelog
###### v1.5
* Possibility to customize image insertion code
###### v1.4.3
* Markdown abstractable function fix

View file

@ -10,7 +10,7 @@ def get_requirements():
setup(
name='django-markdownx',
version='1.4.3',
version='1.5',
packages=find_packages(),
include_package_data=True,
description='Django Markdownx is a Markdown editor built for Django. It enables raw editing, live preview and image uploads (stored in `MEDIA` folder) with drag&drop functionality and auto tag insertion. Also, django-markdownx supports multiple editors on one page.',