From 470fa300a29e50c1a5ae26847a76cd5e79cf78c8 Mon Sep 17 00:00:00 2001 From: Benjamin A Date: Mon, 29 Jul 2024 00:18:35 -0400 Subject: [PATCH] Fix name migration errors --- README.md | 10 +++++----- testproject/testproject/settings.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 3c9a94a..5ccf247 100644 --- a/README.md +++ b/README.md @@ -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`: @@ -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 ``` diff --git a/testproject/testproject/settings.py b/testproject/testproject/settings.py index 8854b23..2bbcfc6 100644 --- a/testproject/testproject/settings.py +++ b/testproject/testproject/settings.py @@ -38,7 +38,7 @@ 'django.contrib.messages', 'django.contrib.staticfiles', 'markdown', - 'simplemde', + 'easymde', ) MIDDLEWARE_CLASSES = (