Skip to content

Commit

Permalink
Fix name migration errors
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-antupit committed Jul 29, 2024
1 parent beb2d89 commit 470fa30
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ from easymde.fields import EasyMDEField

class Entry(models.Model):
title = models.CharField(max_length=250, verbose_name=u'Title')
content = SimpleMDEField(verbose_name=u'mardown content')
content = EasyMDEField(verbose_name=u'mardown content')
```

Note: The widget `SimpleMDEWidget` can also be used in forms on existing fields.
Note: The widget `EasyMDEWidget` can also be used in forms on existing fields.

# EasyMDE options
EasyMDE options can be set in `settings.py`:
Expand All @@ -48,10 +48,10 @@ EASYMDE_OPTIONS = {

Right now, this plugin supports [EasyMDE Configurations](https://github.com/Ionaru/easy-markdown-editor#configuration), but only the static ones(no support for javascript configurations such as ```previewRender```)

# Get SimpleMDE instance from DOM
# Get EasyMDE instance from DOM

After SimpleMDE is initialized, a SimpleMDE instance can be retrieved from the DOM element:
After EasyMDE is initialized, a EasyMDE instance can be retrieved from the DOM element:

```javascript
$('.simplemde-box')[0].EasyMDE
$('.easymde-box')[0].EasyMDE
```
2 changes: 1 addition & 1 deletion testproject/testproject/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
'django.contrib.messages',
'django.contrib.staticfiles',
'markdown',
'simplemde',
'easymde',
)

MIDDLEWARE_CLASSES = (
Expand Down

0 comments on commit 470fa30

Please sign in to comment.