S
S
Sergey Nizhny Novgorod2016-05-28 18:21:40
Django
Sergey Nizhny Novgorod, 2016-05-28 18:21:40

How to add editor to textField in Django admin?

Hey guys.
The task in the Django admin panel in the TextField field is to make a convenient text input. My colleagues told me that there is some solution for RichtextFiled, which displays the editor on this field (but you have to change textField to RichtextFiled in models) - which is not very good, I think.
Can I somehow connect the editor (mb markdown) without rewriting the models? And then inserting text with html markup every time is a little annoying.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Kitaev, 2016-05-28
@deliro

RichtextFiled) - which is not very good, I think.

The textfield must always remain a textfield. No whistles and so on. Have you read Python Zen? "Explicit is better than implicit."
Take django-ckeditor for example.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question