mirror of
https://github.com/Hopiu/django-markdownx.git
synced 2026-03-17 05:50:23 +00:00
18 lines
473 B
Python
18 lines
473 B
Python
from django import forms
|
|
|
|
from markdownx.fields import MarkdownxFormField
|
|
from markdownx.widgets import MarkdownxWidget
|
|
|
|
|
|
class MyForm(forms.Form):
|
|
markdownx_form_field1 = MarkdownxFormField(
|
|
widget=MarkdownxWidget(
|
|
attrs={'class': 'custom-class-markdownx_form_field1'}
|
|
)
|
|
)
|
|
|
|
markdownx_form_field2 = MarkdownxFormField(
|
|
widget=MarkdownxWidget(
|
|
attrs={'class': 'custom-class-markdownx_form_field2'}
|
|
)
|
|
)
|