Open robert-godlewski opened 5 hours ago
For the frontend in React it might be best to use something like TinyMCE as a WYSIWYG in JavaScript to integrate the data
For the backend might need to apply the following and make sure to apply the appropriate validators for the data coming in. The example below renders the text_field as a textarea browsable API through HTML forms:
serializers.py from rest_framework import serializers from django.forms import Textarea
class MySerializer(serializers.Serializer): ... text_field = serializers.CharField(widget=Textarea)
Will need to add this for posts.content and comments.content text area tags.